|
@@ -106,7 +106,7 @@ class IndexController extends Controller
|
|
|
$start_day = $request->get('start', date('Y-m-d'),time()-24*3600);
|
|
|
$end_day=$start_day;
|
|
|
|
|
|
- $query=ContentPage::find()->where(["store"=>$where,'date'=>$start_day]);
|
|
|
+ $query=ContentPage::find()->where(["store"=>$store,'date'=>$start_day]);
|
|
|
$count = $query->count();
|
|
|
if($count>0){
|
|
|
echo $start_day.$store." ContentPage"."已经执行过,请不要重复执行";
|
|
@@ -115,7 +115,7 @@ class IndexController extends Controller
|
|
|
$this->addContentpages($contentpages,$store);
|
|
|
}
|
|
|
|
|
|
- $query=Trafficsource::find()->where(["store"=>$where,'date'=>$start_day]);
|
|
|
+ $query=Trafficsource::find()->where(["store"=>$store,'date'=>$start_day]);
|
|
|
$count = $query->count();
|
|
|
if($count>0){
|
|
|
echo $start_day.$store." Trafficsource"."已经执行过,请不要重复执行";
|