|
@@ -3,6 +3,7 @@
|
|
|
namespace hd\controllers;
|
|
namespace hd\controllers;
|
|
|
|
|
|
|
|
use biz\admin\classes\AdminClass;
|
|
use biz\admin\classes\AdminClass;
|
|
|
|
|
+use biz\shop\classes\ShopClass;
|
|
|
use bizHd\admin\classes\ShopAdminClass;
|
|
use bizHd\admin\classes\ShopAdminClass;
|
|
|
use bizHd\admin\services\ShopAdminService;
|
|
use bizHd\admin\services\ShopAdminService;
|
|
|
use bizHd\admin\services\AdminService;
|
|
use bizHd\admin\services\AdminService;
|
|
@@ -173,7 +174,7 @@ class AuthController extends PublicController
|
|
|
public function actionMiniInfo()
|
|
public function actionMiniInfo()
|
|
|
{
|
|
{
|
|
|
//花店平台
|
|
//花店平台
|
|
|
- Yii::$app->params['ptStyle'] = dict::getDict('ptStyle', 'hd');
|
|
|
|
|
|
|
+ Yii::$app->params['ptStyle'] = dict::getDict('ptStyle', 'hd');
|
|
|
|
|
|
|
|
$code = Yii::$app->request->get('code', '');
|
|
$code = Yii::$app->request->get('code', '');
|
|
|
if (empty($code)) {
|
|
if (empty($code)) {
|
|
@@ -241,4 +242,19 @@ class AuthController extends PublicController
|
|
|
]);
|
|
]);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ //获取收款码的二维码图片 shish 20210602
|
|
|
|
|
+ public function actionGatheringImgUrl()
|
|
|
|
|
+ {
|
|
|
|
|
+ $id = Yii::$app->request->get('id', 0);
|
|
|
|
|
+ $shop = ShopClass::getById($id, true);
|
|
|
|
|
+ if (empty($shop)) {
|
|
|
|
|
+ util::fail('没有找到门店');
|
|
|
|
|
+ }
|
|
|
|
|
+ $sjId = $shop->sjId;
|
|
|
|
|
+ $imgUrl = ShopClass::generateGatheringCode($sjId, $id);
|
|
|
|
|
+ $fileResource = file_get_contents($imgUrl);
|
|
|
|
|
+ header('Content-type: image/jpeg');
|
|
|
|
|
+ echo $fileResource;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|