提交
This commit is contained in:
@@ -19,18 +19,18 @@ class Login extends Base
|
|||||||
return $this->error($e->getError());
|
return $this->error($e->getError());
|
||||||
}
|
}
|
||||||
$code = mt_rand(1001, 9999);
|
$code = mt_rand(1001, 9999);
|
||||||
$code = 1234;
|
// $code = 1234;
|
||||||
$result['code'] = 1;
|
// $result['code'] = 1;
|
||||||
// //进行发送验证 走接口
|
// //进行发送验证 走接口
|
||||||
// $res = Httpcurl::request(config('app.YZM_URL'), 'post', [
|
$res = Httpcurl::request(config('app.YZM_URL'), 'post', [
|
||||||
// 'mobile' => $param['mobile'],
|
'mobile' => $param['mobile'],
|
||||||
// 'code' => $code,
|
'code' => $code,
|
||||||
// ]);
|
]);
|
||||||
// $result = json_decode($res[0], true);
|
$result = json_decode($res[0], true);
|
||||||
// Log::info(json_encode($result));
|
Log::info(json_encode($result));
|
||||||
// if (!$result['code']) {
|
if (!$result['code']) {
|
||||||
// return $this->error('发送验证码失败');
|
return $this->error('发送验证码失败');
|
||||||
// }
|
}
|
||||||
//进行记录
|
//进行记录
|
||||||
if ($result['code'] == 1) {
|
if ($result['code'] == 1) {
|
||||||
//把内容存入session
|
//把内容存入session
|
||||||
|
|||||||
Reference in New Issue
Block a user