Commit cbd1bd50 authored by hujun's avatar hujun

修改分享二维码链接

parent 9c1247b2
......@@ -107,15 +107,21 @@ class Member extends Basic
->count();
if (check_phone($phone)) {
if ($num > 7) {
$data['msg'] = '短信发送超过上限';
} else {
// if ($num > 7) {
// $data['msg'] = '短信发送超过上限';
// } else {
$result['statusMsg'] = '';
$result['statusCode'] = '';
if ($this->request->param('type') == 'add') {
$num = $this->user->where('user_phone', $phone)->count();
if ($num > 0) {
return $this->response($data['status'], '您已注册,请登录');
}
}
$message = new MessageUntils();
$_code = mt_rand(1000, 9999) . '';
$result = $message->sendCCPSMS($phone, array($_code, '5分钟'), 214759);
// $result = $message->sendCCPSMS($phone, array($_code, '5分钟'), 214759);
$noteLog->phone = $phone;
$noteLog->template_msg = '【同联商业】您的验证码为'.$_code.',请于5分钟内正确输入,如非本人操作,请忽略此短信。';
......@@ -137,7 +143,7 @@ class Member extends Basic
$data['msg'] = '短信发送失败';
}
$noteLog->save();
}
// }
} else {
$data['msg'] = '手机号码错误';
}
......@@ -294,7 +300,7 @@ class Member extends Basic
$result['user_pswd'] = $pwd;
} else {
$data['status'] = 101;
$data['msg'] = '密码错误';
$data['msg'] = '密码错误';
}
}
......@@ -368,9 +374,9 @@ class Member extends Basic
if ($result) {
$code = new \app\api\untils\GenerateCodeUntils();
$url = $this->request->domain().'/test.html?referrer_source=0&id='.$result->id;
$url = $this->request->domain().'/app.php/app/share_register?referrer_source=10&id='.$result->id;
$path = $code->getCode($url, $result->id);
$data['data'] = ['path' => $this->request->domain().'/'.$path];
$data['data'] = ['path' => $this->request->domain().'/'.$path];
$data['status'] = 200;
} else {
$data['msg'] = '没有该用户';
......
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