|
|
@@ -31,17 +31,16 @@ class NewSupefinaSpeiController implements PayMentInterFace
|
|
|
return apiReturnFail($logic->getError());
|
|
|
}
|
|
|
|
|
|
- if (!empty($res) && isset($res['barcodeUrl'])) {
|
|
|
- $data = $res['data'];
|
|
|
- $content = $data['barcodeUrl'] ?? '';
|
|
|
- if (empty($content) && !empty($data['receiveCode'])) {
|
|
|
- $content = 'CLABE:' . $data['receiveCode'];
|
|
|
+ if (!empty($res) && isset($res['checkoutUrl'])) {
|
|
|
+ $content = $res['checkoutUrl'] ?? '';
|
|
|
+ if (empty($content) && !empty($res['receiveCode'])) {
|
|
|
+ $content = 'CLABE:' . $res['receiveCode'];
|
|
|
}
|
|
|
return apiReturnSuc([
|
|
|
'content' => $content,
|
|
|
'money' => $payAmt,
|
|
|
- 'prdOrdNo' => $data['merchantOrderNo'] ?? '',
|
|
|
- 'identifier' => $data['receiveCode'] ?? '',
|
|
|
+ 'prdOrdNo' => $res['merchantOrderNo'] ?? '',
|
|
|
+ 'identifier' => $res['receiveCode'] ?? '',
|
|
|
]);
|
|
|
}
|
|
|
|
|
|
@@ -52,7 +51,7 @@ class NewSupefinaSpeiController implements PayMentInterFace
|
|
|
if ($this->retryTimes > 0) {
|
|
|
Redis::set('PayErro_NewSupefinaSpei', 1);
|
|
|
Redis::expire('PayErro_NewSupefinaSpei', 600);
|
|
|
- TelegramBot::getDefault()->sendProgramNotify('SupefinaSpei ReturnFail ', $logic->getError() . ' | ' . json_encode($res));
|
|
|
+ TelegramBot::getDefault()->sendProgramNotify('NewSupefinaSpei ReturnFail ', $logic->getError() . ' | ' . json_encode($res));
|
|
|
return apiReturnFail($logic->getError());
|
|
|
}
|
|
|
$this->retryTimes++;
|