...
|
...
|
@@ -216,11 +216,11 @@ class User extends Frontend |
|
|
'productid' => '887361',//产品id
|
|
|
'xh' => ''//小号
|
|
|
);
|
|
|
/*$result2 = send_sms($content);
|
|
|
$result2 = send_sms($content);
|
|
|
if (substr($result2, 0, strpos($result2, ',')) != "1") {
|
|
|
Db::rollback();
|
|
|
$this->error('发送失败');
|
|
|
}*/
|
|
|
}
|
|
|
Db::commit();
|
|
|
$this->success('SUCCESS','',['code'=>$code]);
|
|
|
}
|
...
|
...
|
@@ -271,11 +271,11 @@ class User extends Frontend |
|
|
'productid' => '887361',//产品id
|
|
|
'xh' => ''//小号
|
|
|
);
|
|
|
/*$result2 = send_sms($content);
|
|
|
$result2 = send_sms($content);
|
|
|
if (substr($result2, 0, strpos($result2, ',')) != "1") {
|
|
|
Db::rollback();
|
|
|
$this->error('发送失败');
|
|
|
}*/
|
|
|
}
|
|
|
Db::commit();
|
|
|
$this->success('SUCCESS','',['code'=>$code]);
|
|
|
}
|
...
|
...
|
@@ -339,10 +339,10 @@ class User extends Frontend |
|
|
}
|
|
|
// $token = generate_user_token($result1);
|
|
|
// session('token',$token);
|
|
|
/*$this->auth->direct($result1);
|
|
|
$this->auth->direct($result1);
|
|
|
$token = $this->auth->getToken();
|
|
|
session('token',$token);
|
|
|
Cookie::set('token',$token);*/
|
|
|
Cookie::set('token',$token);
|
|
|
Db::commit();
|
|
|
$this->success('SUCCESS','user/login_view');
|
|
|
}
|
...
|
...
|
|