作者 赵彬吉

update

@@ -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();