api.php 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Api Language Lines
  6. |--------------------------------------------------------------------------
  7. */
  8. 'SUCCESS' => 'Success',
  9. 'FAIL' => 'Fail',
  10. 'NOT_EMPTY' => 'Cannot be empty',
  11. 'UPLOAD_SUCCESS' => 'Upload success',
  12. 'REQUESTS_TOO_FREQUENTLY' => 'Requests too frequently',
  13. 'NOT_LOGIN' => 'Not login',
  14. 'NOT_EXIST' => 'Invalid',
  15. 'PARAMS_ERROR' => 'Params error',
  16. 'SAVE_ERROR' => 'Save error',
  17. 'FEED_NOT_EXIST' => 'Feed not exist',
  18. 'COMMENT_NOT_EXIST' => 'Comment not exist',
  19. 'USER_NOT_EXIST' => 'User not exist',
  20. 'CONTENT_NOT_NULL' => 'Content not null',
  21. 'WECHAT_CONFIG_LACK' => 'Wechat config lack',
  22. 'GET_OPENID_FALSE' => 'Get openid false',
  23. 'REGISTER_FALSE' => 'Register false',
  24. 'REGISTER_CONFIRM_FALSE' => 'Register confirm false',
  25. 'DATA_SAVE_FALSE' => 'Data save false',
  26. 'MODULE_IS_NOT_USE' => 'Module is not use',
  27. 'CONFIGURE_SMS_TEMPLATE' => 'Please configure sms template',
  28. 'SMS_AUTH_FAILED' => 'Sms auth failed',
  29. 'SMS_RETURN_ERROR' => 'Sms return error',
  30. 'NEED_CONFIGURE' => 'Need configure',
  31. 'USER_IN_BLACK_LIST' => 'User in black list',
  32. 'USER_NO_AUTH' => 'User have no auth',
  33. 'DATA_DECODE_FAILURE' => 'Data decode failure',
  34. 'MOBILE_CODE_FALSE' => 'Please get the verification code first',
  35. 'VERIFY_CODE_FALSE' => 'Verify code false',
  36. 'MOBILE_HAD_EXIST' => 'The phone number is already in use!',
  37. 'MOBILE_NO_REGISTER' => 'Phone number is not registered',
  38. 'ACCOUNT_OR_PASSWORD_ERROR' => 'Account or password error!',
  39. 'PASSWORD_ERROR' => 'Password error',
  40. 'EMAIL_NO_BIND' => 'Email not bind',
  41. 'MOBILE_NO_BIND' => 'Mobile not bind',
  42. 'PASSWORD_NOT_SET' => 'Password not set',
  43. 'APPLY_ADD_FRIEND' => 'Apply add friend',
  44. 'ALREADY_FRIEND' => 'Already friend',
  45. 'OPPOSITE_ACCOUNT_ERROR' => 'Opposite account error',
  46. 'ADD_FRIEND_ERROR' => 'Add friend error',
  47. 'NOT_ON_YOUR_BLACKLIST' => 'Not on your blacklist',
  48. 'YOU_CANT_BLACK_YOURSELF' => 'You cant black yourself',
  49. 'GROUP_CHAT_DOES_NOT_EXIST' => 'Group chat does not exist',
  50. 'GROUP_NAME_NOT_NULL' => 'Group name not null',
  51. 'TENCENT_IM_USER_ID_NULL' => 'Tencent_im_user_id is null',
  52. 'UNAUTHORIZED_OPERATION' => 'Unauthorized operation',
  53. 'TWO_PASSWORD_IS_NOT_SAME' => 'Two password is not same',
  54. 'ATTACHMENT_UPLOAD_INVALID' => 'File upload invalid',
  55. 'ATTACHMENT_SAVE_ERROR' => 'File save error',
  56. 'ATTACHMENT_MAKE_FOLDER_ERROR' => 'Make folder error',
  57. 'ATTACHMENT_TYPE_ERROR' => 'File type error',
  58. 'ATTACHMENT_SIZE_EXCEEDED' => 'File size exceeded',
  59. 'ATTACHMENT_FILE_NULL' => 'File not null',
  60. 'HAD_BIND' => 'Had bind!',
  61. 'PLEASE_ENTER_MOBILE_PHONE_NUMBER' => 'Please enter your mobile phone number',
  62. 'MOBILE_PHONE_NUMBER_FORMAT_ERROR' => 'The number is invalid',
  63. 'VERIFICATION_CODE_NOT_NULL' => 'Verification code must be',
  64. 'TYPE_NOT_NULL' => 'Type not null',
  65. 'PASSWORD_NOT_NULL' => 'Password not null',
  66. 'KEY_NOT_NULL' => 'Please get the verification code',
  67. 'PLEASE_ENTER_EMAIL' => 'Please enter email',
  68. 'MAILBOX_FORMAT_ERROR' => 'Mailbox format error',
  69. 'VERIFICATION_CODE_ERROR' => 'Verification code error',
  70. 'MAILBOX_VALIDATION_NOTIFICATION' => 'Mailbox validation notification',
  71. 'VERIFICATION_CODE_THIS_TIME' => 'Your registration verification code this time is',
  72. 'VALID_FOR_5_MINUTES' => 'Valid for 5 minutes',
  73. 'ILLEGAL_OPERATION' => 'Illegal_operation',
  74. 'TEAM_NOT_EXIST' => 'Team not exist',
  75. 'GAME_NOT_EXIST' => 'Game not exist',
  76. 'ACCOUNT_HAD_BIND' => 'Account had bind',
  77. 'MEMBER_HAD_FULL' => 'Sorry, slots are full',
  78. 'YOU_HAVE_A_TEAM_ALREADY' => 'You have a team already!',
  79. 'HOME_FIELD' => 'Home field',
  80. 'VICE_FIELD' => 'Vice field',
  81. 'WAITING_AUDIT' => 'Waiting audit',
  82. 'APPROVED' => 'Approved',
  83. 'AUDIT_FAILED' => 'Audit failed',
  84. 'HAD_SUBMIT' => 'Had submit',
  85. 'CANNOT_BE_ADDED_REPEATED' => 'Cannot be added repeatedly',
  86. 'NOT_ALLOW' => 'Not allow',
  87. 'WRITE_NUMBER' => 'Please fill in the number',
  88. 'ZERO_50' => 'Range 0 to 50',
  89. 'HIO' => 'HIO',
  90. 'BIRD' => 'Bird',
  91. 'EAGLE' => 'Eagle',
  92. 'EAGLE_PLUS' => 'Eagle+',
  93. 'PAR' => 'Par',
  94. 'JUST_NOW' => 'Just now',
  95. 'MINUTES_AGO' => ' Minutes ago',
  96. 'TODAY' => 'Today ',
  97. 'YESTERDAY' => 'Yesterday ',
  98. 'APPLY_JOIN_GAME' => 'Apply join game ',
  99. 'INVITE_JOIN_GAME' => 'Invite join game ',
  100. 'APPLY_JOIN_TEAM' => 'Apply join team ',
  101. 'INVITE_JOIN_TEAM' => 'Invite join team ',
  102. 'JOIN_ALREADY' => 'Join already !',
  103. 'LOOKING' => 'You are looking now',
  104. 'PRAISED_YOUR_FEEDS' => 'Praised your feeds ',
  105. 'COMMENTED_ON_YOUR_FEEDS' => 'Commented on your feeds ',
  106. 'DATA_NOT_EXIST_OR_DEL' => 'Data not exist or delete',
  107. 'COUNT_IS_WRONGFUL' => 'Count is wrongful',
  108. 'FOLLOW' => 'follow you',
  109. 'GAME_NEWS'=>'Game news',
  110. 'TEAM_NEWS'=>'Team news',
  111. 'FEEDS_NEWS'=>'Feeds news',
  112. 'PUBLISH_FEED_NEWS'=>'Publish feed news',
  113. 'Custom_message' => 'Custom message',
  114. 'Picture' => 'Picture',
  115. 'Voice' => 'Voice',
  116. 'Position' => 'Position',
  117. 'New_message' => 'New message',
  118. 'MEMBER_COUNT_IllEGAL' => 'The members shall not be less than the current number',
  119. 'VERIFICATION_CODE_EXPIRED'=>'Verification code expired',
  120. 'VERIFICATION_PARSING_FAILED'=>'Verification parsing failed',
  121. 'VERIFICATION_ERROR'=>'Verification error!',
  122. 'WRONG_EVENT_TYPE'=>'Wrong event type!',
  123. 'SMS_SENDING_FAILED'=>'Sms sending failed!',
  124. 'YOU_HAVE_PASSED'=>'You have passed',
  125. 'YOU_DO_NOT_HAVE_PASSED'=>'You do not have passed',
  126. 'MEMBERSHIP_CERTIFICATION'=>'Membership certification',
  127. 'GAME_NEWS' => 'Game news',
  128. 'TEAM_NEWS' => 'Team news',
  129. 'OVERALL' => 'Overall ',
  130. 'USER_HAD_JOIN' => 'User had join',
  131. 'START_NOTICE' => 'are participating in other game. After starting, they will be removed in this game. Confirm the start code?',
  132. 'NOT_ALLOW_BEGIN_GAME' => 'You are going another game, not allow begin this game',
  133. //下面是 Http/Requests 验证
  134. 'REMOVED_BY_GROUP_LEADER' => 'removed by group leader !',
  135. 'NAME_REQUIRED' => 'Name required',
  136. 'NAME_HAD_USED' => 'Name had used',
  137. 'NAME_TOO_LONG' => 'Name too long',
  138. 'NAME_TOO_SHORT' => 'Name too short',
  139. 'DESC_TOO_LONG' => 'Brief introduction is too long',
  140. //用户编辑
  141. 'PROFILE_TOO_LONG' => 'Profile too long',
  142. //球队编辑
  143. 'NAME_REQUIRED' => 'Name required',
  144. 'MEMBER_COUNTS_REQUIRED' => 'Member counts required',
  145. //编辑比赛
  146. 'BEGIN_DATE_REQUIRED' => 'Begin date required',
  147. 'BEGIN_TIME_REQUIRED' => 'Begin time required',
  148. 'SCALE_REQUIRED' => 'Scale required',
  149. 'COURSE_REQUIRED' => 'Course required',
  150. //球场会员
  151. 'MEMBER_LENGTH_ILLEGAL' => 'Member length illegal',
  152. 'MEMBER_USED' => 'Member had be used',
  153. 'WHS_LENGTH_ILLEGAL' => 'Whs length illegal',
  154. 'WHS_TOO_SHORT' => 'Whs too short',
  155. 'WHS_USED' => 'Whs used',
  156. 'WHS_REQUIRED' => 'Whs required',
  157. //添加比赛球员
  158. 'GAME_REQUIRED' => 'Game required',
  159. 'PLAYER_REQUIRED' => 'Player required',
  160. //添加动态
  161. 'CONTENT_REQUIRED' => 'Content required',
  162. 'CONTENT_TOO_LONG' => 'Content too long',
  163. 'CONTENT_TOO_SHORT' => 'Content too short',
  164. //消息通知
  165. 'STSTEM_NOTICE' => 'System notice',//系统通知
  166. 'THUMBS_UP' => 'Liked your post', //点赞
  167. 'COMMENT' => 'Comment on your dynamic', //评论
  168. 'REPLY' => 'Reply your comment', //回复
  169. 'INVITE_TEAM' => 'Invite join team ', //邀请加入球队
  170. 'APPLY_TEAM' => 'Request to join the team', //申请加入球队
  171. 'INVITE_GAME' => 'Invite join game ', //邀请加入比赛
  172. 'GAME_APPLY' => 'Game apply', //申请加入比赛
  173. //网络出错,请重试~
  174. 'NETWORK_ERROR' => 'Network error, try again~',
  175. 'MALE' => 'Male',
  176. 'FEMALE' => 'Female',
  177. 'DONE' => 'Done',
  178. 'END_GAME' => 'Ended'
  179. ];