api.php
5.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?php
/**
* Created by PhpStorm.
* User: billy
* Date: 10/02/2017
* Time: 5:27 PM
*/
return [
'error' => [
'database_error' => '数据库更新错误',
'param_error' => '参数错误',
'token_not_provide' => 'token未提供',
'token_expire' => 'token已经过期',
'token_invalid' => 'token无效',
'sms_error' => '验证码发送失败,请稍后重试',
'sms_invalid_type' => '发送的验证码类型有误',
'user_not_exist' => '该用户不存在',
'user_already_exist' => '该用户已经存在',
'login_failed' => '用户名或认证码错误',
'create_token_failed' => '创建token失败',
'input_incomplete' => '输入信息不完整',
'open_id_access_token_failed' => 'openId或accessToken错误',
'user_disabled' => '用户已被禁用',
'sn_not_exist' => '二维码不存在',
'machine_not_exist' => '机柜不存在',
'rent_order_not_back' => '有未归还的订单',
'rent_order_not_take' => '有未取货的订单',
'rent_order_illegal_take' => '非法取货',
'stock_not_enough' => '库存不足',
'production_not_exist' => '该充电宝租借记录不存在',
'spot_not_exist' => '不存在这个景点',
'guide_rule_not_set' => '未设置微导览收费规则',
'guide_record_not_exist' => '微导览单号不存在',
'share_not_enough' => '购买单号不存在',
'no_guide_permission' => '没有微导览使用权限',
'share_no_exist' => '分享的单号不存在',
'code_error' => '微信登录的code值错误',
'we_mini_pay_fail' => '微信小程序发起支付失败',
'rent_not_exist' => '租借单号不存在',
'rent_order_not_take' => '租借未取货',
'share_not_exist' => '购买继续不存在',
'message_invalid' => '消息验证签名失败',
'guide_has_buy' => '微导览已经拥有,无需购买',
'sale_power_not_exist' => '不存在该租借状态充电宝',
'rent_has_not_pay' => '订单还未付款',
'customer_has_register' => '用户已经注册过',
'no_auto_send' => '系统没有录入自动赠送卡券类型',
'machine_ont_life' => '机柜不在线',
'business_not_exist' => '不存在的代理商',
'business_do_not_has_spot' => '代理商旗下没有景点',
'business_do_not_has_spot_permission' => '代理商没有此景点权限',
'spot_do_not_has_machine' => '该景点下下面没有机柜',
'finance_not_exist' => '该景点该月营收统计未生成',
'business_do_not_has_this_spot' => '代理商旗下不存在该景点',
'maual_take_out_invalid_hatchno'=>'无效的仓口号',
'coupon_qrcode_invalid' => '优惠券二维码无效',
'coupon_expire' => '优惠券过期'
],
'success' => [
'need_to_take' => '请直接取货',
'need_to_rent' => '请先付租借押金',
'machine_in_use' => '机柜正在使用中',
'shipment_success' => '出货成功',
'shipment_fail' => '有充电宝出货失败',
'take_success' => '取货成功',
'guide_need_to_buy' => '请购买微导览',
'guide_has_buy' => '已经购买过微导览',
'guide_has_received_available' => '已经领取过该微导览分享有使用权',
'guide_has_received_expire' => '已经领取使用权过期',
'guide_received_is_full' => '该微导览分享领取次数达3人',
'guide_receive_OK' => '为导览领取成功',
'need_to_return' => '有充电宝未归还',
'rent_out_over' => '订单发货完成',
'rent_out_not_over' => '订单发货未完成',
'subscribe_fail' => '预约失败',
'subscribe_success' => '预约成功',
'phone_not_binding' => '未绑定手机号',
'phone_binding' => '已绑定手机号',
'phone_validate_fail' => '验证码错误',
'binding_success' => '绑定成功',
'phone_validate_code_expire' => '验证码过期',
'no_subscribe' => '没有预约单',
'has_take' => '刚取完货',
'guide_receive_ok' => '微导览领取成功',
'guide_sharer' => '分享者不用领取',
'guide_had' => '已经享有服务无需领取',
'send_code_success' => '验证码发送成功',
'coupon_not_binding' => '优惠券未被绑定',
'coupon_has_binding' => '优惠券已被绑定',
'coupon_self_binding' => '优惠券已被该用户绑定',
'coupon_is_binding' => '优惠券正在被绑定,请稍后再试',
'coupon_has_other_binding'=>'优惠券已被其他人绑定',
'coupon_self_binding_success' => '优惠券绑定成功',
'coupon_self_binding_fail' => '优惠券绑定失败',
'coupon_is_getting' => '请不要连续请求',
'coupon_has_getting'=>'您已经领取过优惠券',
'coupon_getting_success'=>'优惠券领取成功',
'coupon_getting_fail' =>'优惠券领取失败,请稍后再试',
'openid_binding_success' =>'oid绑定成功',
'openid_binding_fail' =>'oid绑定失败',
],
];