lizhi 2 ヶ月 前
コミット
10abb8cd22
3 ファイル変更1964 行追加0 行削除
  1. 1961 0
      deploy/php.ini
  2. 2 0
      deploy/start.sh
  3. 1 0
      protected/controllers/CommonController.php

ファイルの差分が大きいため隠しています
+ 1961 - 0
deploy/php.ini


+ 2 - 0
deploy/start.sh

@@ -2,6 +2,8 @@
 chown -R www:www /tmp
 chown -R www:www /alidata/www/protected/runtime/
 
+cp -f /alidata/www/deploy/php.ini /usr/local/etc/php/php.ini
+
 #启动php
 php-fpm
 

+ 1 - 0
protected/controllers/CommonController.php

@@ -184,6 +184,7 @@ class CommonController extends Controller
         } else {
             Helper::error('上传有误');
         }
+        \CVarDumper::dump($upArr, 6, 1);die;
         $type = strtolower($upArr['type']);
         if (!Helper::hasAnyString($type, ['png', 'jpeg', 'jpg'])) {
             Helper::error('图片格式不正确 ' . $type);