shish il y a 4 ans
Parent
commit
f73b4b7a3e
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      app-hd/controllers/MtController.php

+ 3 - 0
app-hd/controllers/MtController.php

@@ -166,6 +166,7 @@ class MtController extends PublicController
                             $shopImg[] = $shortUrl;
                         }
                         $hasGoods->shopImg = $shopImg;
+                        Yii::$app->redis->executeCommand('SET', ['mt_goods_spu_' . $mtGoodsSpu, md5($imgString)]);
                     }
                     $hasGoods->name = $goodsName;
                     $hasGoods->price = $goodsPrice;
@@ -204,6 +205,7 @@ class MtController extends PublicController
             $labourCost = $post['package_bag_money_yuan'] ?? 0;
             //服务费和手续费
             $serviceFee = bcadd($foodShareFeeChargeByPoi, $performanceServiceFee, 2);
+            $thirdSn = $post['day_seq'] ?? 0;
             $orderData = [
                 'product' => $productList,
                 'fromType' => dict::getDict('fromType', 'mt'),
@@ -214,6 +216,7 @@ class MtController extends PublicController
                 'sjId' => $sjId,
                 'modifyPrice' => $modifyPrice,
                 'serviceFee' => $serviceFee,
+                'thirdSn' => $thirdSn,
             ];
             $hasPay = dict::getDict('hasPay', 'payed');
             OrderService::createFinishOrder($orderData, $custom, $hasPay);