Commit 580b1303 by 杨树贤

助力添加类型限制

parent caec796c
......@@ -80,6 +80,8 @@ class AssistsController extends Controller
return $this->Export(self::CAN_NOT_ASSIST_MYSELF);
} elseif ($result['errcode'] === 109009) {
return $this->Export(self::CAN_NOT_ASSIST);
} elseif ($result['errcode'] === 109016) {
return $this->Export(self::EXCHANGE_TYPE_ERROR);
} else {
return $this->Export(self::ASSIST_FAIL);
}
......
......@@ -23,6 +23,8 @@ class Controller extends BaseController
const CAN_NOT_ASSIST_MYSELF = 109008;
//不能助力了(助力人数已满或者用户已经助力过)
const CAN_NOT_ASSIST = 109009;
//助力类型不能是话费的兑换
const EXCHANGE_TYPE_ERROR = 109011;
//不能助力了(助力人数已满或者用户已经助力过)
const CAN_NOT_INVITE_MYSELF = 109010;
......
......@@ -18,6 +18,7 @@ return [
109008 => '自己不能助力自己',
109009 => '助力人数已满或者您已经助力过',
109010 => '自己不能邀请自己',
109011 => '助力类型只允许用于微信转账',
109100 => '今天已经兑换过了,请明天再来吧',
109101 => '兑换名额被抢光了',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment