Sfoglia il codice sorgente

修改排班/完成订单模板

liuyuanhang 4 anni fa
parent
commit
45d03d56e6

+ 1 - 1
app/Http/Controllers/Api/V2/DoctorController.php

xqd
@@ -2208,7 +2208,7 @@ class DoctorController extends AuthController
                 if($lists){
                     $schedule_id = $lists['id'];
                 }else{
-                    $lists2 = Schedule::create(['schedule_type'=>1,'schedule_date'=>$req['schedule_date'],'schedule_day'=>str_replace('-','/',$req['schedule_date']),'week'=>$req['week'],'docter_id'=>$doctor_id,'organization_id'=>0,'per_time_num'=>0]);
+                    $lists2 = Schedule::create(['schedule_type'=>1,'schedule_date'=>$req['schedule_date'],'schedule_day'=>str_replace('-','',$req['schedule_date']),'week'=>$req['week'],'docter_id'=>$doctor_id,'organization_id'=>0,'per_time_num'=>0]);
                     if ($lists2){
                         $schedule_id = $lists2['id'];
                     }else{

+ 3 - 4
app/Http/Controllers/Api/V2/PatientController.php

xqd xqd
@@ -1077,9 +1077,9 @@ class PatientController extends AuthController
         $Order = Order::with(['orderPatient','user'])->where(['id'=>$order_id])->first();
         $type = '';
         if ($Order['product_type']==1){
-            $type = '电话咨询';
+            $type = '电话咨询已结束';
         }elseif ($Order['product_type']==2){
-            $type = '图文咨询 ';
+            $type = '图文咨询已结束 ';
         }elseif ($Order['product_type']==3){
             $type = '门诊预约';
         }
@@ -1090,8 +1090,7 @@ class PatientController extends AuthController
                     "pages/index",
                     $Order['order_sn'],
                     $type,
-                    date('Y-m-d H:i',$Order['receiving_time']),
-                    $Order['order_patient']['phone'],
+                    $Order['payment_amount'],
                 ],'wechat_small_program');
             }
         }

+ 3 - 5
config/config.php

xqd xqd
@@ -884,7 +884,7 @@ return [
             'touser' => '%s',
             'mp_template_msg' => [
                 'appid' => env('OFFICIAL_WECHAT_APPID'),
-                'template_id' => 'grtzjXaIQNMTI-UoxY8cakzVna4q65s6qqZFbW67rIk',
+                'template_id' => 'kXr_VrMMLMKwxs17sYzGdzYyGy3aq9ZtqmFnNNiiBoc',
                 'url' => '',
                 'miniprogram' => [
                     'appid' => env('WECHAT_APPID', 'wx6131f74e623bf6bf'),
@@ -903,11 +903,9 @@ return [
                     'keyword3' => [
                         'value' => '%s',
                     ],
-                    'keyword4' => [
-                        'value' => '%s',
-                    ],
+
                     'remark' => [
-                        'value' => '点击进入小程序查看详情!',
+                        'value' => '点击进入小程序查看详情,感谢您的使用!',
                     ],
                 ]
             ],