shish 2 yıl önce
ebeveyn
işleme
3717192f05
1 değiştirilmiş dosya ile 28 ekleme ve 0 silme
  1. 28 0
      app-ghs/controllers/TestController.php

+ 28 - 0
app-ghs/controllers/TestController.php

@@ -162,9 +162,37 @@ class TestController extends BaseController
         die;
     }
 
+    public function actionQuery()
+    {
+        $shopId = 1212;
+        $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,
+            'merchantPrivateKeyPath' => $merchantPrivateKeyPath,
+            'lklCertificatePath' => $lklCertificatePath,
+        ];
+        $laResource = new Lakala($params);
+        $queryParams = [
+            'orderSn' => 'CL28682061',
+        ];
+        $response = $laResource->query($queryParams, 0);
+        echo "<pre>";
+        print_r($response);
+    }
+
+
     //交易查询 ssh 20231021
     public function actionTradeQuery()
     {
+        die;
         $shopId = 795;
         $shop = ShopClass::getById($shopId, true);
         if (empty($shop)) {