|
|
|
@ -341,7 +341,7 @@ class IPayLinksService extends CI_Controller
|
|
|
|
|
foreach ($data['unsend_list'] as $item) {
|
|
|
|
|
|
|
|
|
|
//已经发送的不处理,防止重复发送
|
|
|
|
|
if ($item->IPL_sent == 'send' && empty($pn_txn_id)) {
|
|
|
|
|
if ($item->IPL_sent == 'send') {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -352,8 +352,8 @@ class IPayLinksService extends CI_Controller
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//只处理完成状态,其他状态由陆燕处理
|
|
|
|
|
if (strcmp(trim($item->IPL_resultCode), "0000") && empty($pn_txn_id)) {
|
|
|
|
|
$this->Note_model->update_send($item->IPL_dealId, 'send');
|
|
|
|
|
if (strcmp(trim($item->IPL_resultCode), "0000") !== 0 && strcmp(trim($item->IPL_stateCode), "2") !== 0) {
|
|
|
|
|
$this->Note_model->update_send($item->IPL_dealId, 'sendfail');
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -637,7 +637,7 @@ class IPayLinksService extends CI_Controller
|
|
|
|
|
,strval($asyns_resp->data->currencyCode)
|
|
|
|
|
,strval(bcdiv(floatval($asyns_resp->data->orderAmount), 100))
|
|
|
|
|
,NULL
|
|
|
|
|
,NULL
|
|
|
|
|
,isset($asyns_resp->data->stateCode) ? $asyns_resp->data->stateCode : NULL
|
|
|
|
|
,strval(date('Y-m-d H:i:s',strtotime($asyns_resp->data->acquiringTime)))
|
|
|
|
|
,strval(date('Y-m-d H:i:s',strtotime($asyns_resp->data->completeTime)))
|
|
|
|
|
,json_encode($asyns_resp->data)
|
|
|
|
|