|
|
@@ -215,8 +215,7 @@ class TestController extends BaseController
|
|
|
//交易查询 ssh 20231021
|
|
|
public function actionTradeQuery()
|
|
|
{
|
|
|
- die;
|
|
|
- $shopId = 795;
|
|
|
+ $shopId = 10649;
|
|
|
$shop = ShopClass::getById($shopId, true);
|
|
|
if (empty($shop)) {
|
|
|
util::stop('没有找到门店');
|
|
|
@@ -233,9 +232,11 @@ class TestController extends BaseController
|
|
|
];
|
|
|
$laResource = new Lakala($params);
|
|
|
$queryParams = [
|
|
|
- 'tradeNo' => '20231021110113130266215211135188',
|
|
|
+ 'orderSn' => 'CG26677404',
|
|
|
];
|
|
|
- $response = $laResource->query($queryParams, 1);
|
|
|
+ $response = $laResource->query($queryParams, 0);
|
|
|
+ print_r($response);
|
|
|
+ die;
|
|
|
if (isset($response['code']) && $response['code'] == 'BBS00000') {
|
|
|
$capitalType = dict::getDict('capitalType', 'hdPurchaseClear', 'id');
|
|
|
$connection = Yii::$app->db;
|