作者 lyh

gx

@@ -155,6 +155,21 @@ class ComController extends BaseController @@ -155,6 +155,21 @@ class ComController extends BaseController
155 } 155 }
156 156
157 public function ceshi(){ 157 public function ceshi(){
158 - return $this->projectUrlNotify('news'); 158 + $data = [];
  159 + for ($i = 1;$i <= 30 ;$i++){
  160 + $start_time = Carbon::now()->modify('-'.$i.' days')->toDateString();
  161 + $data[] = [
  162 + 'project_id'=>1,
  163 + 'pv_num'=>$i*(rand(10,1000)),
  164 + 'ip_num'=>$i*(rand(10,1000)),
  165 + 'inquiry_num'=>$i*(rand(10,1000)),
  166 + 'date'=>$start_time,
  167 + 'compliance_day'=>2351,
  168 + 'service_day'=>1233,
  169 + 'created_at'=>$start_time,
  170 + 'updated_at'=>$start_time,
  171 + ];
  172 + }
  173 + DB::table('gl_count')->insert($data);
159 } 174 }
160 } 175 }