ipaylinks 订单多次支付时查询bug,改使用resultCode作判断

feature/trippest
lyt 8 years ago
parent a1368bd571
commit feee5b0855

@ -257,6 +257,18 @@ class IPayLinksService extends CI_Controller
return; return;
} }
public function query_pay($orderid)
{
$this->query_info_arr["queryOrderId"] = $this->create_guid();
$this->query_info_arr["orderId"] = $orderid;
$this->query_info_arr["mode"] = 2;
$this->query_info_arr["signMsg"] = $this->generate_sign($this->query_info_arr);
$resp = $this->curl($this->queryUrl,$this->query_info_arr);
echo $resp;
return;
}
/*! /*!
* 订单业务处理 * 订单业务处理
* * 查询写入交易记录 iPayLinks_log * * 查询写入交易记录 iPayLinks_log
@ -332,7 +344,7 @@ class IPayLinksService extends CI_Controller
} }
//只处理完成状态,其他状态由陆燕处理 //只处理完成状态,其他状态由陆燕处理
if (strcmp(trim($item->IPL_stateCode), "2")) { if (strcmp(trim($item->IPL_resultCode), "0000")) {
$this->Note_model->update_send($item->IPL_dealId, 'sendfail'); $this->Note_model->update_send($item->IPL_dealId, 'sendfail');
continue; continue;
} }

Loading…
Cancel
Save