|
@@ -293,6 +293,8 @@ class Apismt extends Start_Controller {
|
|
|
$fl = $this->ck->get_fl($warehouse['hz'],$dataorder['whlabel'],$dataorder['fpdata']);
|
|
|
|
|
|
**/
|
|
|
+
|
|
|
+ $this->logic_ding->sendToDing("SMT运单同步【".$v['orderinfo']."】"."||".$dlz);
|
|
|
$this->fullordersmt->save(array('state'=>$zt[$v['state']],'express'=>$express,'waybill'=>$waybill,'dlz'=>$dlz,'expressstate'=>$expressstate,'overtime'=>$overtime),$dataorder['id']);
|
|
|
}
|
|
|
}
|
|
@@ -761,6 +763,7 @@ class Apismt extends Start_Controller {
|
|
|
foreach ($t as $vv)
|
|
|
{
|
|
|
$d = $this->apismt->get_out($v['waybill'],'all',$vv['orderinfo'],$express['aecode'],$shop['code']);
|
|
|
+ $this->logic_ding->sendToDing("SMT运单同步【".$vv['orderinfo']."】"."||执行信息一||".json_encode($d));
|
|
|
if(isset($d['result_success']) && $d['result_success'] == "true")
|
|
|
{
|
|
|
$this->fullordersmt->save(array('dlz'=>1,'exstate'=>1,'state'=>209),$vv['id']);
|
|
@@ -777,6 +780,7 @@ class Apismt extends Start_Controller {
|
|
|
}
|
|
|
}
|
|
|
$dlz = $this->apismt->get_out($v['waybill'],'all',$v['orderinfo'],$express['aecode'],$shop['code']);
|
|
|
+ $this->logic_ding->sendToDing("SMT运单同步【".$v['orderinfo']."】"."||执行信息二||".json_encode($d));
|
|
|
if(isset($dlz['result_success']) && $dlz['result_success'] == "true")
|
|
|
{
|
|
|
$this->fullordersmt->save(array('dlz'=>1,'exstate'=>1,'state'=>209),$v['id']);
|