浏览代码

测试一下云尚快递轨迹同步

lvhao 3 月之前
父节点
当前提交
7f6e844770
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      core/CoreApp/controllers/Apidsyskxcx.php

+ 4 - 3
core/CoreApp/controllers/Apidsyskxcx.php

@@ -118,7 +118,8 @@ class Apidsyskxcx extends Start_Controller
                 {
                 {
                     if ($info['shop'] < '7') // && $v['shouldmoney'] > 100)
                     if ($info['shop'] < '7') // && $v['shouldmoney'] > 100)
                     {
                     {
-                        $wlfs[] = array('v' => $info, 'id' => $notice_id );
+                       // $wlfs[] = array('v' => $info, 'id' => $notice_id );
+                        $this->_sdfs($info,$notice_id);
                         //$go = $this->_sdfs($v,$var['id']);//更新顺带发送
                         //$go = $this->_sdfs($v,$var['id']);//更新顺带发送
                     }
                     }
                 }
                 }
@@ -128,7 +129,7 @@ class Apidsyskxcx extends Start_Controller
         }
         }
         $this->zzjobs->save(['status'=>30,'last_time'=>time(),'result'=>json_encode($fs,JSON_UNESCAPED_UNICODE)],$v['id']);
         $this->zzjobs->save(['status'=>30,'last_time'=>time(),'result'=>json_encode($fs,JSON_UNESCAPED_UNICODE)],$v['id']);
         // if(!empty($wlfs)){
         // if(!empty($wlfs)){
-        //     $this->_sdfs($v['v'],$v['id']);
+           
         // }
         // }
         // @$this->allocation->insert(array('title'=>$shopid.'-'.json_encode($csck)));
         // @$this->allocation->insert(array('title'=>$shopid.'-'.json_encode($csck)));
 		// if($wlfs)
 		// if($wlfs)
@@ -163,7 +164,7 @@ class Apidsyskxcx extends Start_Controller
 			$content = $notice['title'];
 			$content = $notice['title'];
 			$stripos = $notice['type'].'-'.$notice[$fslx].'|';
 			$stripos = $notice['type'].'-'.$notice[$fslx].'|';
 		}
 		}
-        $this->logic_ding->sendToDing("云尚轨迹获取快递信息暂时中断");
+        $this->logic_ding->sendToDing("云尚轨迹获取快递信息暂时中断"."【".json_encode($fullorder)."】{".json_encode($notice)."}");
         return ;
         return ;
 		if(stripos($fullorder['zdstate'],$stripos) === false && $fullorder['wltype'] == '0')//如果没发送过并且允许发送
 		if(stripos($fullorder['zdstate'],$stripos) === false && $fullorder['wltype'] == '0')//如果没发送过并且允许发送
 		{
 		{