Browse Source

修改注册用户时,默认is_open字段

刘远航 4 năm trước cách đây
mục cha
commit
95a35bc02e
1 tập tin đã thay đổi với 12 bổ sung2 xóa
  1. 12 2
      app/Http/Controllers/Api/V2/PatientController.php

+ 12 - 2
app/Http/Controllers/Api/V2/PatientController.php

xqd xqd xqd xqd
@@ -253,11 +253,14 @@ class PatientController extends AuthController
             DB::rollBack();
             return out('', 500, $e->getMessage());
         }
-        $this->ReceivingReminderOK($find['id']);
 
+        $msg = $this->ReceivingReminderOK($find['id']);
+
+        trace(['完成订单日志', '请求参数' => $find['id'] ?? '', '返回数据' => $msg ?? ''], 'lyh_info');
 
         $axbwhere['docter_id'] = $user['id'];
         $axbwhere['user_id'] = $find['user_id'];
+
         $finds = Axb::where($axbwhere)->orderBy('id', 'desc')->first();
 
         if ($status == 1 && $finds) {
@@ -349,6 +352,8 @@ class PatientController extends AuthController
             DB::rollBack();
             return out('', 500, $e->getMessage());
         }
+        trace(['门诊完成订单日志', '请求参数' => $find['id'] ?? '', '返回数据' => $msg ?? ''], 'lyh_info');
+
         $this->ReceivingReminderOK($find['id']);
 
         return out();
@@ -402,7 +407,9 @@ class PatientController extends AuthController
                 'content' => "您的 " . $lab . " 订单,订单号" . $order_sn . ",医生" . $doctername . "已经确认接单(点击查看订单详情)",
             ]);
             DB::commit();
-            $this->ReceivingReminder($req['order_id']);
+
+            $msg = $this->ReceivingReminder($req['order_id']);
+            trace(['接单日志', '请求参数' => $req['order_id'] ?? '', '返回数据' => $msg ?? ''], 'lyh_info');
             return out();
         } catch (\Exception $e) {
 
@@ -909,7 +916,10 @@ class PatientController extends AuthController
      * @throws \GuzzleHttp\Exception\GuzzleException
      */
     public function ReplyReminder($docter_id,$user_id){
+
         $list = Docter::with(['DocterOrganization','organization'])->where(['id'=>$docter_id,'is_open'=>2])->first();
+        trace(['消息回复', '请求参数' => $docter_id.'-'.$user_id ?? '', 'list数据' => $list ?? ''], 'lyh_info');
+
         $user = User::where('id',$user_id)->first();
         if ($list){
             if ($user['openid']){