正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -236,7 +236,7 @@ class LoginController extends BaseController | @@ -236,7 +236,7 @@ class LoginController extends BaseController | ||
| 236 | $this->response('登录失败',Code::USER_ERROR); | 236 | $this->response('登录失败',Code::USER_ERROR); |
| 237 | } | 237 | } |
| 238 | //没有from_order_id的项目 进入演示版 运营中心 | 238 | //没有from_order_id的项目 进入演示版 运营中心 |
| 239 | - $arr['from_order_id'] = 0; | 239 | + $arr['from_order_id'] = $arr['from_order_id'] ?? 0; |
| 240 | if(!$arr['from_order_id']){ | 240 | if(!$arr['from_order_id']){ |
| 241 | //有账号就直接登录, 没有账号创建账号登录 | 241 | //有账号就直接登录, 没有账号创建账号登录 |
| 242 | $user = (new User())->where('project_id', Project::DEMO_PROJECT_ID)->where('mobile', $arr['phone'])->first(); | 242 | $user = (new User())->where('project_id', Project::DEMO_PROJECT_ID)->where('mobile', $arr['phone'])->first(); |
-
请 注册 或 登录 后发表评论