作者 赵彬吉

update

... ... @@ -236,7 +236,7 @@ class LoginController extends BaseController
$this->response('登录失败',Code::USER_ERROR);
}
//没有from_order_id的项目 进入演示版 运营中心
$arr['from_order_id'] = 0;
$arr['from_order_id'] = $arr['from_order_id'] ?? 0;
if(!$arr['from_order_id']){
//有账号就直接登录, 没有账号创建账号登录
$user = (new User())->where('project_id', Project::DEMO_PROJECT_ID)->where('mobile', $arr['phone'])->first();
... ...