作者 刘锟

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

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