|
|
|
@ -125,6 +125,7 @@ class TulanduoApi extends CI_Controller
|
|
|
|
|
$all_list = array_merge($all_list, $f_resp_arr["responseData"]["orders"]);
|
|
|
|
|
}
|
|
|
|
|
$cnt = 0;
|
|
|
|
|
$order_id_str = "";
|
|
|
|
|
$pag_no_tmp = $this->pag_no_tmp();
|
|
|
|
|
mb_regex_encoding("UTF-8");
|
|
|
|
|
$unique_order = array();
|
|
|
|
@ -172,9 +173,12 @@ class TulanduoApi extends CI_Controller
|
|
|
|
|
if ($this->Orders_model->GCI_SN === null) {
|
|
|
|
|
/*biz_groupcombineinfo*/
|
|
|
|
|
$this->insert_gci($vo);
|
|
|
|
|
|
|
|
|
|
$order_id_str .= ", " . $vo["orderId"];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$output_text = "Got order list from TuLanDuo. count: " . $resp_arr["responseData"]["totalRows"] . ". Insert COLI : " . $cnt;
|
|
|
|
|
$output_text .= "; " . $order_id_str;
|
|
|
|
|
log_message('error', $output_text);
|
|
|
|
|
echo $output_text;
|
|
|
|
|
return;
|
|
|
|
@ -522,6 +526,7 @@ class TulanduoApi extends CI_Controller
|
|
|
|
|
// $this->insert_gai($coli_sn, $groupSN, $coli_id, $paytype, $pay_currency, $GAI_SQJE, $GAI_SSJE, $gai_vei_sn, $GAI_Memo);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// 没有收款记录, 则写入一条=0, 以免财务表无法保存
|
|
|
|
|
if ( ! isset($detail_jsonResp->orderDetail->operationDetails->otherReceives)
|
|
|
|
|
&& ! isset($detail_jsonResp->orderDetail->travelFees) ) {
|
|
|
|
|
$this->insert_gai($coli_sn, $groupSN, $coli_id, $paytype, $pay_currency, 0, 0, $gai_vei_sn, $auto_text );
|
|
|
|
|