zilong 4 vuotta sitten
vanhempi
commit
fc83b23e9d
2 muutettua tiedostoa jossa 13 lisäystä ja 16 poistoa
  1. 1 1
      app/Http/Controllers/Api/V1/OrderController.php
  2. 12 15
      config/config.php

+ 1 - 1
app/Http/Controllers/Api/V1/OrderController.php

xqd
@@ -506,7 +506,7 @@ class OrderController extends AuthController
                 $server_name = $order['organization']['name'];
             }
             $official_arr = [$user['openid'], $order['order_sn'], $keyword2, round($order['total_amount']/100, 2), date('Y-m-d H:i:s', $order['payment_time']), $order['order_patient']['name'], $server_name, $order['order_notes'], config('config.payment_status_map')[$order['payment_status']]];
-            $subscribe_arr = [$user['openid'], $order['order_sn'], $order['order_notes'], $keyword2, config('config.payment_status_map')[$order['payment_status']]];
+            $subscribe_arr = [$user['openid'], $order['order_sn'], $keyword2, $order['order_notes']];
             send_wechat_message(7, $official_arr, $subscribe_arr);
 
             DB::commit();

+ 12 - 15
config/config.php

xqd xqd xqd xqd
@@ -11,12 +11,6 @@ return [
     'aes_key' => 'bEJwbf2w8Abbhr1g',
     'aes_iv' => 'sfX2ReOCcY22CEUF',
 
-    // 正式服 小程序id
-    /*'wechat_small_program' => [
-        'app_id' => 'wx1dcbf8ce4bca6870',
-        'secret' => 'f978c16e3664c33c811c02f1d48690b9',
-    ],*/
-
     'wechat_small_program' => [
         'app_id' => env('WECHAT_APPID', 'wx6131f74e623bf6bf'),
         'secret' => env('WECHAT_APPSECRET', 'b703596ab6cbcad5b74eb51fec2aeb0b'),
@@ -480,7 +474,7 @@ return [
     'wechat_subscribe_message_template' => [
         //电话咨询下单
         1 => [
-            'template_id' => 'M9b6PPKtD7PEqLsSnQ453iTIHtIZZpixOBjUj',
+            'template_id' => 'M9b6PPKtD7PEqLsSnQ453iTIHtIZZpixOBjUjax8YXU',
             'touser' => '%s',
             'page' => '',
             'data' => [
@@ -503,7 +497,7 @@ return [
         ],
         //图文咨询下单
         2 => [
-            'template_id' => 'M9b6PPKtD7PEqLsSnQ453iTIHtIZZpixOBjUj',
+            'template_id' => 'M9b6PPKtD7PEqLsSnQ453iTIHtIZZpixOBjUjax8YXU',
             'touser' => '%s',
             'page' => '',
             'data' => [
@@ -618,21 +612,24 @@ return [
         ],
         //订单取消提醒
         7 => [
-            'template_id' => 'bjZ-r79i8sl7zEtdttAtcCPZLkCgFSYHTNWnNVd1cG0',
+            'template_id' => '368_VJaSVZQay3E5-yPelJKJn3R_Hu56dVflxazHiCY',
             'touser' => '%s',
             'page' => '',
             'data' => [
-                'character_string1' => [
+                'character_string8' => [
                     'value' => '%s',
                 ],
-                'name5' => [
-                    'value' => '用户',
-                ],
-                'thing4' => [
+                'thing6' => [
                     'value' => '%s',
                 ],
                 'thing7' => [
-                    'value' => '%s订单,支付状态:%s,有任何疑问,请联系管理员',
+                    'value' => '%s',
+                ],
+                'time3' => [
+                    'value' => date('Y-m-d H:i:s'),
+                ],
+                'thing4' => [
+                    'value' => '如有已支付的款项会退回账户,有任何疑问请联系客服人员',
                 ],
             ],
         ],