|
|
@@ -257,6 +257,36 @@ class TestController extends BaseController
|
|
|
print_r($response);
|
|
|
}
|
|
|
|
|
|
+ //测试环境查线上数据 ssh 20231230
|
|
|
+ public function actionCsQuery()
|
|
|
+ {
|
|
|
+// $shopId = 1527;
|
|
|
+// $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,
|
|
|
+ 'merchant_no' => '82222105992004A',
|
|
|
+ //'term_no' => $shop->lklScanTermNo,
|
|
|
+ 'term_no' => 'H3656802',
|
|
|
+ 'merchantPrivateKeyPath' => $merchantPrivateKeyPath,
|
|
|
+ 'lklCertificatePath' => $lklCertificatePath,
|
|
|
+ ];
|
|
|
+ $laResource = new Lakala($params);
|
|
|
+ $queryParams = [
|
|
|
+ //'orderSn' => 'KD26452235',
|
|
|
+ 'tradeNo' => '20231230110113130266215700775011',
|
|
|
+ ];
|
|
|
+ $response = $laResource->query($queryParams, 1);
|
|
|
+ echo "<pre>";
|
|
|
+ print_r($response);
|
|
|
+ }
|
|
|
+
|
|
|
public function actionQuery()
|
|
|
{
|
|
|
// $shopId = 1527;
|