IBOS open source
  • Namespace
  • Class

Namespaces

  • application
    • core
      • cache
        • driver
        • provider
      • components
      • controllers
      • engines
        • local
        • sae
      • model
      • modules
      • utils
      • widgets
    • modules
      • article
        • controllers
        • core
        • model
        • utils
      • calendar
        • controllers
        • model
        • utils
      • contact
        • controllers
        • model
        • utils
      • dashboard
        • controllers
        • model
        • utils
      • department
        • components
        • model
        • utils
      • diary
        • components
        • controllers
        • model
        • utils
        • widgets
      • email
        • controllers
        • core
        • model
        • utils
      • main
        • behaviors
        • components
        • controllers
        • model
        • utils
        • widgets
      • message
        • controllers
        • core
          • co
          • wx
            • callback
            • event
        • model
        • utils
      • mobile
        • components
        • controllers
        • utils
      • position
        • components
        • model
        • utils
      • recruit
        • components
        • controllers
        • core
        • model
        • utils
        • widgets
      • role
        • model
        • utils
      • user
        • components
        • controllers
        • model
        • utils
      • vote
        • components
        • controllers
        • model
        • utils
      • weibo
        • controllers
        • core
        • model
        • utils

Classes

  • CoApi
  • CodeApi

Class CodeApi

todo::暂时没有用上,不知道怎么写这种代码

Namespace: application\modules\message\core\co
Located at system/modules/message/core/co/CodeApi.php

Constants summary

string SUCCESS

目前只有成功的用上了,继续这块代码编写的注意了: 如果哪个用上了,就把那个改成字符串 ps:对应的接口记得不要用数字去判断,php不喜欢字符串, 如果在判断里用了这里的“code”,而这里的又写成了数字,php会强行把字符串变成数字,最明显的错误例子就是var_dump('1e2'==100);这个结果是true

目前只有成功的用上了,继续这块代码编写的注意了: 如果哪个用上了,就把那个改成字符串 ps:对应的接口记得不要用数字去判断,php不喜欢字符串, 如果在判断里用了这里的“code”,而这里的又写成了数字,php会强行把字符串变成数字,最明显的错误例子就是var_dump('1e2'==100);这个结果是true

# '0'
integer TOKEN_INVALID
# -1
integer TOKEN_EXPIRY
# -2
integer TOKEN_OUT_RANGE
# -3
integer PARAM_ERROR
# -4
integer PARAM_MISSING
# -5
integer TOKEN_REQUIRE_PERSONAL
# -6
integer TOKEN_REQUIRE_CORP
# -7
integer SAVE_ERROR
# -8
integer SIGN_ERROR
# -9
integer INVALID_AUTHOR_CODE
# -10
integer RECORD_NOT_EXISTS
# -11
integer RECORD_ALREADY_EXISTS
# -12
integer INVALID_QRCODE_LENGTH
# -13
integer USER_REQUIRE_IDENTITY
# -1001
integer USER_EMAIL_ALREADY_TAKEN
# -1002
integer USER_NAME_ALREADY_TAKEN
# -1003
integer USER_MOBILE_ALREADY_TAKEN
# -1004
integer USER_INVALID_IDENTITY
# -1005
integer USER_REQUIRE_JOIN_CORP
# -1006
integer USER_NOT_IN_SAME_CORP
# -1007
integer USER_IM_TOKEN_ERROR
# -1008
integer USER_ACCOUNT_ERROR
# -1009
integer USER_PASSWORD_ERROR
# -1010
integer CORP_ALREADY_JOINED
# -2001
integer CORP_CODE_ALREADY_TAKEN
# -2002
integer CORP_ALREADY_APPLY
# -2003
integer CORP_REQUIRE_ADMIN_IDENTITY
# -2004
integer CORP_MISSING
# -2005
integer CORP_ALREADY_CREATED
# -2006
integer CORP_CREATEOR_CANT_EXIT
# -2007
integer CORP_REQUIRE_BIND_IBOS
# -2008
integer CORP_CODE_NOTALLOWTYPE
# -2009
integer CORP_CODE_KEPPCODE
# -2010
integer CORP_CREATEOR_CAN_DEL
# -2011
integer DEPT_NOT_EXISTS
# -3001
integer DEPT_HAS_CHILD_DEPT
# -3002
integer DEPT_HAS_USER
# -3003
integer DEPT_NOT_JOINED
# -3004
integer DEPT_NOT_SUPPORT_BATCH
# -3005
integer DISCUSSION_NOT_EXISTS
# -4001
integer CARD_INVALID
# -5001
IBOS open source API documentation generated by ApiGen