fix: 支付宝线下扫码的记录查询

master
Lei OT 2 years ago
parent 7aa376e4ab
commit 9b63ffbdca

@ -524,6 +524,10 @@ class AlipayTradeService extends CI_Controller
$opi_firstname = 'contact@arachina.com';
}
//没有外联信息表示订单未分配
if (empty($opi_email) && !empty($opi_firstname)) {
$this->Alipay_note_model->update_send($item->ALI_dealId, 'send');
continue;
}
if (empty($opi_email) || empty($opi_firstname)) {
$this->Alipay_note_model->update_send($item->ALI_dealId, 'sendfail');
continue;
@ -1053,7 +1057,7 @@ class AlipayTradeService extends CI_Controller
// if (true) { // debug: 0
if (empty($data['notelist'])) {
$query_pay = $this->query_pay($data["keywords"]);
if (empty($query_pay)) {
if (empty($query_pay) || $query_pay->code === '40004') {
$this->set_merchant('trippest');
$query_pay = $this->query_pay($data["keywords"]);
}

@ -42,7 +42,7 @@ class Alipay_note_model extends CI_Model {
public function search_date($date) {
$this->init();
$search_sql = " AND pn.ALI_noticeTime BETWEEN '$date 00:00:00' AND '$date 23:59:59'
$search_sql = " AND pn.ALI_acquiringTime BETWEEN '$date 00:00:00' AND '$date 23:59:59'
OR isnull(ALI_sent,'') in ('sendfail','unsend','') ";
$this->search = $search_sql;
$this->orderby=" ORDER BY CASE pn.ALI_sent WHEN 'sendfail' THEN 1 ELSE 2 END ,pn.ALI_sn DESC ";
@ -127,7 +127,7 @@ class Alipay_note_model extends CI_Model {
));
$insertid = $this->INFO->last_id('AlipayLog');
$ret = "SELECT TOP 1 * FROM AlipayLog WHERE ALI_dealId='$ALI_dealId' ORDER BY ALI_sn DESC ";
return $this->INFO->query($ret)->row();
return $this->set_fundsource( $this->INFO->query($ret)->row());
}
public function get_list() {
@ -161,6 +161,7 @@ class Alipay_note_model extends CI_Model {
if ($this->topnum === 1) {
if ($query->num_rows() > 0) {
$row = $query->row();
$this->set_fundsource($row);
return $row;
} else {
return FALSE;

Loading…
Cancel
Save