wang hou sheng 7 months ago
parent 40b0587c75
commit b486615bcc
  1. 9
      app/api/controller/Store.php
  2. 8
      app/common/model/WxwholesalerAccount.php

@ -17,6 +17,7 @@ use app\api\service\User as UserService;
use app\api\validate\store\Store as StoreValidte; use app\api\validate\store\Store as StoreValidte;
use app\common\model\PriceSet; use app\common\model\PriceSet;
use app\common\model\Store as StoreInfoModel; use app\common\model\Store as StoreInfoModel;
use app\common\model\UploadFile;
use app\store\model\store\Address as AddressModel; use app\store\model\store\Address as AddressModel;
use think\db\exception\DataNotFoundException; use think\db\exception\DataNotFoundException;
use think\db\exception\DbException; use think\db\exception\DbException;
@ -113,8 +114,12 @@ class Store extends Controller
public function getStoreInfo(): Json public function getStoreInfo(): Json
{ {
$storeid = request()->header()['storeid']; $storeid = request()->header()['storeid'];
$info = StoreInfoModel::detail(intval($storeid)); $info = StoreInfoModel::where('store_id', $storeid)->find()->toArray();
return $this->renderSuccess(compact('info')); $file = UploadFile::where('file_id', $info['group_share_img_id'])->field('file_path,domain')->find();
$info['group_share_img'] = $file['preview_url'];
$file = UploadFile::where('file_id', $info['logo_image_id'])->field('file_path,domain')->find();
$info['logo_image'] = $file['preview_url'];
return $this->renderSuccess($info);
} }
/** /**

@ -0,0 +1,8 @@
<?php
namespace app\common\model;
class WxwholesalerAccount
{
}
Loading…
Cancel
Save