Browse Source

服务提交

linwu 1 year ago
parent
commit
c1e7e706e7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/admin/controller/GoodsController.php

+ 2 - 2
app/admin/controller/GoodsController.php

@@ -168,13 +168,13 @@ class GoodsController extends Base
 			$data['quantity_unit'] = '分钟';
 		}
 
-		if ($data['cat_id']) {
+		/*if ($data['cat_id']) {
 			$cat = Category::find($data['cat_id']);
 			if (!empty($cat)) {
 				$cat = $cat->toArray();
 			}
 			$data['ptype'] = $cat['ptype'];
-		}
+		}*/
 		if (!empty($data['videourl'])) {
 			$data['videotype'] = 1;
 		} elseif (!empty($data['videoid'])) {