Commit 063462fa by 赵增煜

开方bug修复

parent a3f1ccc5
......@@ -100,7 +100,7 @@ public function create(Request $request)
if ($authInfo->last_login_type == User::LOGIN_TYPE_PHARMACY) {
$pharmacy = PharmacyModel::where('user_id', $authInfo->id)->first();
$pharmacy_id = $pharmacy->id;
} elseif ($authInfo->last_login_type == User::LOGIN_TYPE_DOCTOR) {
} elseif ($authInfo->last_login_type == User::LOGIN_TYPE_USER) {
$pharmacy = PharmacyModel::find($pharmacy_id);
if (! $pharmacy) {
return $this->failed('药店信息不存在');
......
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