Browse Source

服务提交

linwu 1 năm trước cách đây
mục cha
commit
c1e7e706e7
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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'])) {