Commit 17d1b6d6 by 赵增煜

清除验证码

parent a126c59e
......@@ -163,8 +163,10 @@ public function bindRole(Request $request)
}
// 把所有user_id:$authInfo->id的置为0
PharmacyModel::where('user_id', $authInfo->id)->update(['user_id' => 0]);
$pharmacy->user_id = $authInfo->id;
$pharmacy->save();
// 重新绑定
PharmacyModel::where('', $pharmacy->id)->update(['user_id' => $authInfo->id]);
// $pharmacy->user_id = $authInfo->id;
// $pharmacy->save();
} elseif ($login_type == User::LOGIN_TYPE_DOCTOR) {
$doctor = DoctorModel::query()->where('mobile', $mobile)->first();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment