|
|
@@ -30,6 +30,18 @@ class ShopController extends BaseController
|
|
|
|
|
|
public $guestAccess = ['all'];
|
|
|
|
|
|
+ //小程序端使用,下载收款码 ssh 20250821
|
|
|
+ public function actionMiniGatheringCode()
|
|
|
+ {
|
|
|
+ $shop = $this->shop;
|
|
|
+ $lsShopId = $shop->lsShopId ?? 0;
|
|
|
+ if (empty($lsShopId)) {
|
|
|
+ util::fail('没有零售店ID');
|
|
|
+ }
|
|
|
+ $imgUrl = ShopClass::generateGatheringCode($this->sjId, $lsShopId);
|
|
|
+ util::success(['imgUrl' => $imgUrl]);
|
|
|
+ }
|
|
|
+
|
|
|
//修改客户微信二维码 ssh 20240714
|
|
|
public function actionChangeWx()
|
|
|
{
|
|
|
@@ -177,10 +189,10 @@ class ShopController extends BaseController
|
|
|
|
|
|
//同步更新同城配送微信门店
|
|
|
// 校验有无经纬度数据,没有不更新(说明地图定位功能不可用了)
|
|
|
- if($post['lat'] != '' && $post['long'] != '') {
|
|
|
+ if ($post['lat'] != '' && $post['long'] != '') {
|
|
|
$shopExt = \bizGhs\shop\classes\MainClass::getById($this->mainId, false, false, 'id, wxStoreId');
|
|
|
if ($shopExt['wxStoreId'] == '') {
|
|
|
- Yii::error(__CLASS__ . __METHOD__ .' - 未创建门店,请先创建');
|
|
|
+ Yii::error(__CLASS__ . __METHOD__ . ' - 未创建门店,请先创建');
|
|
|
util::complete();
|
|
|
}
|
|
|
|