shish 2 년 전
부모
커밋
41c8bf07d8
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      app-mall/controllers/TestController.php

+ 5 - 3
app-mall/controllers/TestController.php

@@ -15,10 +15,11 @@ class TestController extends BaseController
     //收银台订单查询 ssh 20231026
     public function actionTradeQuery()
     {
-        $shopId = 1;
+        $shopId = 36524;
+        //$shopId = 1;
         $shop = ShopClass::getById($shopId, true);
         if (empty($shop)) {
-            util::fail('没有找到订单');
+            util::fail('没有找到门店');
         }
         $merchantPrivateKeyPath = Yii::getAlias("@vendor/lakala") . '/production/api_private_key.pem';
         $lklCertificatePath = Yii::getAlias("@vendor/lakala") . '/production/lkl-apigw-v1.cer';
@@ -31,7 +32,8 @@ class TestController extends BaseController
             'lklCertificatePath' => $lklCertificatePath,
         ];
         $laResource = new Lakala($params);
-        $orderSn = 'KD26449727';
+        $orderSn = 'KD_CS61235137';
+        //$orderSn = 'KD26449727';
         $cashParams = [
             'out_order_no' => $orderSn,
         ];