|
|
@@ -25,6 +25,7 @@ class UploadController extends BaseController
|
|
|
$base64_image_content = str_replace("content=", "", urldecode($base64));
|
|
|
|
|
|
$categoryIds = Yii::$app->request->post('categoryId', []);
|
|
|
+ $categoryIds = [1,2];
|
|
|
if (!empty($categoryIds)) {
|
|
|
$categoryList = CategoryService::getByIds($categoryIds);
|
|
|
foreach ($categoryList as $cat) {
|
|
|
@@ -70,7 +71,7 @@ class UploadController extends BaseController
|
|
|
unlink($fullPathFile);
|
|
|
$fullPathFile = $newFullPathFile;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//生成小图 200px
|
|
|
$smallWidth = 200;
|
|
|
$smallHeight = ceil((200 * $height) / $width);
|