Browse Source

删除权限

shish 6 years ago
parent
commit
ec071b737a

+ 7 - 3
app/business/controllers/UploadController.php

@@ -38,9 +38,13 @@ class UploadController extends BaseController
 				util::fail('上传失败!!');
 			}
 			$img = "/uploads/{$merchantId}/{$month}/{$date}/" . $newFile;
-			
-			$r = getimagesize($fullPath);
-			dd($r);
+
+			$imgInfo = getimagesize($fullPath);
+			$width = $imgInfo[0];
+			$height = $imgInfo[1];
+			if($width > 800){
+
+			}
 			
 			$new = $path.$preFileName.'_small.'.$type;
 			//压缩

+ 8 - 1
app/saas/controllers/AuthController.php

@@ -8,7 +8,7 @@ use Yii;
 
 class AuthController extends BaseController
 {
-
+	
 	//获取权限树 shish 2019.11.24
 	public function actionTree()
 	{
@@ -51,4 +51,11 @@ class AuthController extends BaseController
 		util::ok();
 	}
 
+	//删除权限 shish 2020.1.7
+	public function actionDelete()
+	{
+		$id = Yii::$app->request->get('id');
+		util::ok('删除成功');
+	}
+
 }