曾超新 5 years ago
parent 984d546e65
commit d1683f4f88
  1. 3
      frontend/controllers/InsurerController.php

@ -3589,9 +3589,8 @@ class InsurerController extends BaseController
$name = md5(rand(100, 200)); $name = md5(rand(100, 200));
$imgstr = '@frontend/web/upload/images/'.date('Ym'); $imgstr = '@frontend/web/upload/images/'.date('Ym');
$imgstr .= '/gift' . $name . '' . $datetime . '.png'; $imgstr .= '/gift' . $name . '' . $datetime . '.png';
echo str_replace('@frontend/web/', '',$imgstr);
FileHelper::createDirectory(dirname(str_replace('@frontend/web/', '',$imgstr))); FileHelper::createDirectory(dirname(str_replace('@frontend/web/', '',$imgstr)));
echo time();exit;
//生成新的图片 //生成新的图片
if ($gift_info && $gift_info->type_id == 1) { // 实物 if ($gift_info && $gift_info->type_id == 1) { // 实物
\yii\imagine\Image::thumbnail('@frontend/web/images/gift.png', 400, 252) \yii\imagine\Image::thumbnail('@frontend/web/images/gift.png', 400, 252)

Loading…
Cancel
Save