|
|
@@ -198,7 +198,14 @@ class AllinPay extends Client
|
|
|
$this->api = self::UNITODER_PAY_API;
|
|
|
$this->payType = $isWechat ? 'W01' : 'A01';
|
|
|
$this->version = self::VERSION_NUM_11;
|
|
|
- return $this->create($trxamt, $orderId, $body, null, null, null, '', $remark);
|
|
|
+ $res = $this->create($trxamt, $orderId, $body, null, null, null, '', $remark);
|
|
|
+ $invalid = time() + 60;
|
|
|
+ if ($isWechat) {
|
|
|
+ $key = 'code_url';
|
|
|
+ } else {
|
|
|
+ $key = 'qrCode';
|
|
|
+ }
|
|
|
+ return ['invalid' => $invalid, 'logo' => sys_config('wap_login_logo'), $key => $res['payinfo']];
|
|
|
}
|
|
|
|
|
|
/**
|