shish %!s(int64=5) %!d(string=hai) anos
pai
achega
f880102513
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  1. 8 1
      app-ghs/controllers/ProductController.php

+ 8 - 1
app-ghs/controllers/ProductController.php

@@ -100,7 +100,7 @@ class ProductController extends BaseController
         }
 
         $status = Yii::$app->request->get('status', 0);
-        if(!empty($status)){
+        if (!empty($status)) {
             $where['status'] = $status;
         }
 
@@ -427,4 +427,11 @@ class ProductController extends BaseController
         util::success(['py' => $py]);
     }
 
+    //复制花材
+    public function actionCopy()
+    {
+        $id = Yii::$app->request->get('id');
+        util::complete();
+    }
+
 }