Commit f5b20fd2 by 赵增煜

重新绑定

parent 17d1b6d6
...@@ -164,7 +164,7 @@ public function bindRole(Request $request) ...@@ -164,7 +164,7 @@ public function bindRole(Request $request)
// 把所有user_id:$authInfo->id的置为0 // 把所有user_id:$authInfo->id的置为0
PharmacyModel::where('user_id', $authInfo->id)->update(['user_id' => 0]); PharmacyModel::where('user_id', $authInfo->id)->update(['user_id' => 0]);
// 重新绑定 // 重新绑定
PharmacyModel::where('', $pharmacy->id)->update(['user_id' => $authInfo->id]); PharmacyModel::where('id', $pharmacy->id)->update(['user_id' => $authInfo->id]);
// $pharmacy->user_id = $authInfo->id; // $pharmacy->user_id = $authInfo->id;
// $pharmacy->save(); // $pharmacy->save();
......
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