|
|
@@ -420,7 +420,7 @@ class TestController extends BaseController
|
|
|
//['name' => '广州王艺百合', 'merchantNo' => '8225810599201FZ', 'wx' => [817598762, 817598757], 'zfb' => '2088080092969250'],
|
|
|
//['name' => '广州鑫源花卉批发', 'merchantNo' => '8225810599201G3', 'wx' => [819164143, 819164039], 'zfb' => '2088080202837723'],
|
|
|
['name' => '固始县花语鲜花批发', 'merchantNo' => '82251505992004R', 'wx' => [822243163, 822242931], 'zfb' => '2088080448601764'],
|
|
|
- ['name' => '昆明小向', 'merchantNo' => '8227310599200VK', 'wx' => [821387260, 821388013], 'zfb' => '2088080376224927'],
|
|
|
+ ['name' => '昆明小向', 'merchantNo' => '8227310599200VK', 'wx' => [821387260, 821388013], 'zfb' => '2088080376224927'],
|
|
|
['name' => '张家口实惠花屋', 'merchantNo' => '82213805992004V', 'wx' => [820489785, 820487296], 'zfb' => '2088080312197467'],
|
|
|
['name' => '深圳鼎盛皇室花卉', 'merchantNo' => '8225840599201MF', 'wx' => [807078304, 807076486], 'zfb' => '2088970117746334'],
|
|
|
//['name' => '东莞惠雅鲜花(莞城店)', 'merchantNo' => '8226020599200GJ', 'wx' => [796953190, 796976959], 'zfb' => '2088770940104912'],
|
|
|
@@ -769,13 +769,37 @@ class TestController extends BaseController
|
|
|
'lklCertificatePath' => $lklCertificatePath,
|
|
|
];
|
|
|
$laResource = new Lakala($params);
|
|
|
+ $orderSn = 'CL29188869';
|
|
|
$queryParams = [
|
|
|
- //'orderSn' => 'CL29188869',
|
|
|
+ //'orderSn' => $orderSn,
|
|
|
'tradeNo' => '66222923861204',
|
|
|
];
|
|
|
$response = $laResource->query($queryParams, 1);
|
|
|
echo "<pre>";
|
|
|
print_r($response);
|
|
|
+ util::stop();
|
|
|
+ $code = $response['code'] ?? '';
|
|
|
+ if ($code == 'BBS00000') {
|
|
|
+ $retData = $response['resp_data'];
|
|
|
+ $total_amount = $retData['total_amount'] ?? 0;
|
|
|
+ $account_type = $retData['account_type'] ?? '';
|
|
|
+ $merchant_no = $retData['merchant_no'] ?? '';
|
|
|
+ $totalFee = $total_amount / 100;
|
|
|
+ $transactionId = $retData['trade_no'] ?? 0;
|
|
|
+ $currentPayWay = null;
|
|
|
+ if ($account_type == 'WECHAT') {
|
|
|
+ $currentPayWay = dict::getDict('payWay', 'wxPay');
|
|
|
+ } elseif ($account_type == 'ALIPAY') {
|
|
|
+ $currentPayWay = dict::getDict('payWay', 'alipay');
|
|
|
+ } else {
|
|
|
+ noticeUtil::push('支付回调失败了,没有找到支付类型,orderSn:' . $orderSn, '15280215347');
|
|
|
+ util::end();
|
|
|
+ }
|
|
|
+ $attach = 'merchant_no=' . $merchant_no;
|
|
|
+ $capitalType = dict::getDict('capitalType', 'hdPurchaseClear', 'id');
|
|
|
+ echo $currentPayWay.'|'.$capitalType.'|'.$orderSn.'|'.$totalFee.'|'. $attach.'|'.$transactionId;
|
|
|
+ //payUtil::thirdPay($currentPayWay, $capitalType, $orderSn, $totalFee, $attach, $transactionId);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//零售订单查询 ssh 20231031
|
|
|
@@ -1448,7 +1472,7 @@ class TestController extends BaseController
|
|
|
if (!empty($acc_trade_no)) {
|
|
|
$v->payReturnCode = $acc_trade_no;
|
|
|
$v->save();
|
|
|
- echo $acc_trade_no.' | ';
|
|
|
+ echo $acc_trade_no . ' | ';
|
|
|
}
|
|
|
}
|
|
|
}
|