|
|
@@ -401,6 +401,33 @@ class TestController extends BaseController
|
|
|
print_r($response);
|
|
|
}
|
|
|
|
|
|
+ public function actionClearQuery()
|
|
|
+ {
|
|
|
+ $shopId = 8249;
|
|
|
+ $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' => 'CL28693295',
|
|
|
+ //'tradeNo' => '20231230110113130266215700775011',
|
|
|
+ ];
|
|
|
+ $response = $laResource->query($queryParams, 0);
|
|
|
+ echo "<pre>";
|
|
|
+ print_r($response);
|
|
|
+ }
|
|
|
+
|
|
|
//零售订单查询 ssh 20231031
|
|
|
public function actionLsTradeQuery()
|
|
|
{
|