|
|
@@ -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,
|
|
|
];
|