正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
| @@ -231,7 +231,10 @@ class Auth | @@ -231,7 +231,10 @@ class Auth | ||
| 231 | 231 | ||
| 232 | //直接登录会员 | 232 | //直接登录会员 |
| 233 | $this->direct($user->id); | 233 | $this->direct($user->id); |
| 234 | - | 234 | + if (!$user->open_id && $open_id = session("open_id")){ |
| 235 | + $user->open_id = $open_id; | ||
| 236 | + $user->save(); | ||
| 237 | + } | ||
| 235 | return true; | 238 | return true; |
| 236 | } | 239 | } |
| 237 | 240 |
-
请 注册 或 登录 后发表评论