作者 赵彬吉

update

... ... @@ -111,7 +111,7 @@ class SyncProject extends Command
'cooperate_date' => date('Y-m-d', $param['create_time']),
'service_duration' => $param['years'],
'plan' => $this->versionData($param['plan_marketing']),
'api_no' => $param['id'],
// 'api_no' => $param['id'], //改手动填
'amount' => $param['plan_price'],
'contract' => json_encode($param['files']),
'bill' => json_encode($param['images']),
... ...
... ... @@ -62,6 +62,9 @@ class RankDataController extends BaseController
$data = $googleSpeedApi->run($domain);
if($data){
$model = GoogleSpeedModel::where('project_id', $project_id)->first();
if(!$model){
$model = new $model;
}
$model->project_id = $project_id;
$model->data = $data;
$model->updated_date = date('Y-m-d');
... ...