WIN-2308041133\Administrator 4 months ago
parent
commit
ac0b37e81e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/admin/model/order/StoreOrder.php

+ 2 - 2
app/admin/model/order/StoreOrder.php

@@ -1084,7 +1084,7 @@ HTML;
             'remark' => '点击查看订单详情'
             'remark' => '点击查看订单详情'
         ];
         ];
         @file_put_contents('quanju.txt',  json_encode($postageData)."-测试模版消息\r\n", 8);
         @file_put_contents('quanju.txt',  json_encode($postageData)."-测试模版消息\r\n", 8);
-        if ($postageData['delivery_type'] == 'send') {//送货
+        if ($postageData['delivery_type'] == 'express') {//送货
             $goodsName = StoreOrderCartInfo::getProductNameList($order['id']);
             $goodsName = StoreOrderCartInfo::getProductNameList($order['id']);
             if ($order['is_channel'] == 1) {
             if ($order['is_channel'] == 1) {
                 //小程序送货模版消息
                 //小程序送货模版消息
@@ -1108,7 +1108,7 @@ HTML;
                 @file_put_contents('quanju.txt',  "-模版消息\r\n", 8);
                 @file_put_contents('quanju.txt',  "-模版消息\r\n", 8);
                 WechatTemplateService::sendTemplate($openid, WechatTemplateService::ORDER_DELIVER_SUCCESS, $group, $url);
                 WechatTemplateService::sendTemplate($openid, WechatTemplateService::ORDER_DELIVER_SUCCESS, $group, $url);
             }
             }
-        } else if ($postageData['delivery_type'] == 'express') {//发货
+        } else if ($postageData['delivery_type'] == 'send') {//发货
             if ($order['is_channel'] == 1) {
             if ($order['is_channel'] == 1) {
                 //小程序发货模版消息
                 //小程序发货模版消息
                 RoutineTemplate::sendOrderPostage($order, 1);
                 RoutineTemplate::sendOrderPostage($order, 1);