chengwl 4 년 전
부모
커밋
b41ed53bd7
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      controllers/IndexController.php

+ 2 - 2
controllers/IndexController.php

@@ -210,10 +210,10 @@ class IndexController extends \app\controllers\HomeController
     public function actionProductinfo(){
       $ga=new GA();
       $request = Yii::$app->request;
-      $store=$request->get('store',"supernova");
+      $store=$request->get('store');
       $productName=$request->get('productName');
       $productName=urldecode($productName);
-      if(!$productName){
+      if(!$productName||!$store){
          $this->json(0,[],'参数错误');
       }
       $start_day=$request->get('start', date('Y-m-d',time()-3600*24*8));