作者 刘锟

Merge remote-tracking branch 'origin/master' into akun

@@ -58,18 +58,16 @@ class Demo extends Command @@ -58,18 +58,16 @@ class Demo extends Command
58 protected $description = 'demo'; 58 protected $description = 'demo';
59 59
60 public function handle(){ 60 public function handle(){
61 - $domain = "https://www.xawellauto.com/";  
62 - $token = md5($domain.date("Y-m-d"));  
63 - $url = "https://form.globalso.com/api/external-interface/domain_con/15243d63ed5a5738?domain=$domain&token=$token&source=1,2,3,4&num=15";  
64 - $url = $url."&sta_date=2024-07";  
65 - try {  
66 - $res = http_get($url,['charset=utf-8']);  
67 - } catch (\Exception | GuzzleException $e) {  
68 - errorLog('提交询盘信息失败', $domain, $e);  
69 - return false; 61 + $optimizeModel = new DeployOptimize();
  62 + $list = $optimizeModel->list();
  63 + foreach ($list as $k => $v){
  64 + if(!empty($v['g_top_plan'])){
  65 + $v['g_top_plan']['is_compliance'] = 0;
  66 + $optimizeModel->edit(['g_top_plan'=>json_encode($v['g_top_plan'])],['id'=>$v['id']]);
  67 + echo date('Y-m-d H:i:s') . '重制g_top-project_id:'.$v['project_id'] . PHP_EOL;
  68 + }
70 } 69 }
71 - echo date('Y-m-d H:i:s') . '数据:'.json_encode($res) . PHP_EOL;  
72 - return $res; 70 + return true;
73 } 71 }
74 72
75 // public function handle(){ 73 // public function handle(){