|
|
@@ -379,10 +379,6 @@ class UserOpen extends UserModel
|
|
|
*/
|
|
|
public function smsloginWx($data)
|
|
|
{
|
|
|
- if (!$this->check($data)) {
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
$user = $this->where('user_no', $data['user_no'])->find();
|
|
|
if (empty($user)) {
|
|
|
$vall = [
|
|
|
@@ -401,8 +397,13 @@ class UserOpen extends UserModel
|
|
|
}
|
|
|
|
|
|
$user = $this->where('user_no', $data['user_no'])->find();
|
|
|
+ $data['mobile'] = $user['mobile'];
|
|
|
}
|
|
|
|
|
|
+ if (!$this->check($data)) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
$info = [
|
|
|
'open_id' => $data['openid'],
|
|
|
'reg_source' => 'wx',
|