|
|
@ -3590,7 +3590,6 @@ class InsurerController extends BaseController |
|
|
|
$imgstr = '@frontend/web/upload/images/'.date('Ym'); |
|
|
|
$imgstr = '@frontend/web/upload/images/'.date('Ym'); |
|
|
|
$imgstr .= '/gift' . $name . '' . $datetime . '.png'; |
|
|
|
$imgstr .= '/gift' . $name . '' . $datetime . '.png'; |
|
|
|
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) |
|
|
@ -3625,6 +3624,7 @@ echo time();exit; |
|
|
|
->save(Yii::getAlias($imgstr)); |
|
|
|
->save(Yii::getAlias($imgstr)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo time();die(); |
|
|
|
|
|
|
|
|
|
|
|
$gift_src = str_replace('@frontend/web', '', $imgstr); |
|
|
|
$gift_src = str_replace('@frontend/web', '', $imgstr); |
|
|
|
//保存order_gift_t表里png文件地址 |
|
|
|
//保存order_gift_t表里png文件地址 |
|
|
|