|
|
@@ -23,9 +23,8 @@ class UploadController extends BaseController
|
|
|
header('Content-type:text/html;charset=utf-8');
|
|
|
$base64 = file_get_contents('php://input');
|
|
|
$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) {
|