Commit 31906b5a authored by hujun's avatar hujun

1

parent 95eee381
......@@ -358,7 +358,7 @@ class Member extends Basic{
$this->msg = '此号码为虚拟号码';break;
case -3 :
$this->code = 101;
$this->msg = '没有权限';break;
$this->msg = '没有新增VIP权限';break;
}
$this->operating_records($this->userId, $type=3, $remark, $this->params['id']);
......
......@@ -256,16 +256,18 @@ class Users extends Model
if (!empty($data['sex'])) {
$insert_data['sex'] = $data['sex'];
}
if (!empty($data['agents_id'])) {
$insert_data['agent_id'] = $data['agents_id'];
if ($data['vip'] == 1) {
if ($data['vip'] == 1 && $insert_data['agent_id'] != 1) {
$vip = new VipService();
if ($vip->vip($this->$insert_data['agent_id'])) {
if ($vip->vip($insert_data['agent_id'], 'add_vip')) {
return -3;
}
}
}
if (!empty($data['industry_type'])) {
$insert_data['industry_type'] = $data['industry_type'];
}
......
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 to comment