|
@@ -13,6 +13,7 @@ class Apidsyskxcx extends Start_Controller
|
|
{
|
|
{
|
|
parent::__construct();
|
|
parent::__construct();
|
|
$this->load->_model('Model_fullorder','fullorder');
|
|
$this->load->_model('Model_fullorder','fullorder');
|
|
|
|
+ $this->load->_model("Model_logic_ding","logic_ding");
|
|
}
|
|
}
|
|
public function _remap($arg, $arg_array)
|
|
public function _remap($arg, $arg_array)
|
|
{
|
|
{
|
|
@@ -56,7 +57,6 @@ class Apidsyskxcx extends Start_Controller
|
|
}
|
|
}
|
|
|
|
|
|
$sercet_str = md5($check_str);
|
|
$sercet_str = md5($check_str);
|
|
- throw new Exception("失败");
|
|
|
|
if($sercet_str != $token){
|
|
if($sercet_str != $token){
|
|
exit("Request permission is illegal");
|
|
exit("Request permission is illegal");
|
|
}
|
|
}
|
|
@@ -69,7 +69,12 @@ class Apidsyskxcx extends Start_Controller
|
|
private function _doRenwu(){
|
|
private function _doRenwu(){
|
|
//必须是云尚快线 打印
|
|
//必须是云尚快线 打印
|
|
$list = $this->fullorder->find_all("express = 71 and print = 3 and library = 2 and expressstate < 6");
|
|
$list = $this->fullorder->find_all("express = 71 and print = 3 and library = 2 and expressstate < 6");
|
|
- die(count($list));
|
|
|
|
|
|
+
|
|
|
|
+ $waybill_list = array_column($list,'waybill');
|
|
|
|
+
|
|
|
|
+ $split_waybills = array_chunk($waybill_list,10);
|
|
|
|
+
|
|
|
|
+ $this->logic_ding->sendToDing(json_encode($split_waybills));
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|