From d1683f4f88a2f5b8ab62f3d2dc277825d5a2e32d Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Tue, 5 Nov 2019 22:00:02 +0800 Subject: [PATCH] test2 --- frontend/controllers/InsurerController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/controllers/InsurerController.php b/frontend/controllers/InsurerController.php index 71da475..e5cec75 100644 --- a/frontend/controllers/InsurerController.php +++ b/frontend/controllers/InsurerController.php @@ -3589,9 +3589,8 @@ class InsurerController extends BaseController $name = md5(rand(100, 200)); $imgstr = '@frontend/web/upload/images/'.date('Ym'); $imgstr .= '/gift' . $name . '' . $datetime . '.png'; - echo str_replace('@frontend/web/', '',$imgstr); FileHelper::createDirectory(dirname(str_replace('@frontend/web/', '',$imgstr))); - +echo time();exit; //生成新的图片 if ($gift_info && $gift_info->type_id == 1) { // 实物 \yii\imagine\Image::thumbnail('@frontend/web/images/gift.png', 400, 252)