|
|
@ -37,8 +37,8 @@ class QrCodePromotionController extends BaseController
|
|
|
|
public function uploadQrCodeBackground()
|
|
|
|
public function uploadQrCodeBackground()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$fileController = new FileController();
|
|
|
|
$fileController = new FileController();
|
|
|
|
$ossStatus = C('OSS_STATUS');
|
|
|
|
$storageType = C('STORAGE_TYPE');
|
|
|
|
C('OSS_STATUS', false);
|
|
|
|
C('STORAGE_TYPE', null);
|
|
|
|
/* 调用文件上传组件上传文件 */
|
|
|
|
/* 调用文件上传组件上传文件 */
|
|
|
|
$Picture = D('Picture');
|
|
|
|
$Picture = D('Picture');
|
|
|
|
$pic_driver = C('PICTURE_UPLOAD_DRIVER');
|
|
|
|
$pic_driver = C('PICTURE_UPLOAD_DRIVER');
|
|
|
@ -51,7 +51,7 @@ class QrCodePromotionController extends BaseController
|
|
|
|
$_REQUEST['flag']
|
|
|
|
$_REQUEST['flag']
|
|
|
|
); //
|
|
|
|
); //
|
|
|
|
|
|
|
|
|
|
|
|
C('OSS_STATUS', $ossStatus);
|
|
|
|
C('STORAGE_TYPE', $storageType);
|
|
|
|
|
|
|
|
|
|
|
|
$path = '';
|
|
|
|
$path = '';
|
|
|
|
if ($info) {
|
|
|
|
if ($info) {
|
|
|
|