|
|
@ -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); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|