shish 2 anni fa
parent
commit
d57471a5b2
1 ha cambiato i file con 11 aggiunte e 11 eliminazioni
  1. 11 11
      app-ghs/controllers/TestController.php

+ 11 - 11
app-ghs/controllers/TestController.php

@@ -23,7 +23,7 @@ use common\components\util;
 class TestController extends BaseController
 {
 
-    public $guestAccess = ['refund-query','inform', 'notice', 'order-query', 'add-order', 'index', 'get', 'trade-query', 'query', 'balance-query', 'refund'];
+    public $guestAccess = ['refund-query', 'inform', 'notice', 'order-query', 'add-order', 'index', 'get', 'trade-query', 'query', 'balance-query', 'refund'];
 
     //退款操作 ssh 20231029
     public function actionRefund()
@@ -206,25 +206,25 @@ class TestController extends BaseController
 
     public function actionRefundQuery()
     {
-//        $shopId = 1212;
-//        $shop = ShopClass::getById($shopId, true);
-//        if (empty($shop)) {
-//            util::stop('没有找到门店');
-//        }
+        $shopId = 36523;
+        $shop = ShopClass::getById($shopId, true);
+        if (empty($shop)) {
+            util::stop('没有找到门店');
+        }
         $merchantPrivateKeyPath = Yii::getAlias("@vendor/lakala") . '/production/api_private_key.pem';
         $lklCertificatePath = Yii::getAlias("@vendor/lakala") . '/production/lkl-apigw-v1.cer';
         $params = [
             'appid' => 'OP00002119',
             'serial_no' => '018b08cfddbd',
-            //'merchant_no' => $shop->lklSjNo,
-            //'term_no' => $shop->lklScanTermNo,
-            'merchant_no' => '82260205992007P',
-            'term_no' => 'D7652397',
+            'merchant_no' => $shop->lklSjNo,
+            'term_no' => $shop->lklScanTermNo,
+//            'merchant_no' => '82260205992007P',
+//            'term_no' => 'D7652397',
             'merchantPrivateKeyPath' => $merchantPrivateKeyPath,
             'lklCertificatePath' => $lklCertificatePath,
         ];
         $laResource = new Lakala($params);
-        $orderSn = 'RD25404288';
+        $orderSn = 'RD_CS28000336';
         $data = [
             'orderSn' => $orderSn,
         ];