lqmac 1 month ago
parent 693cb1e158
commit d0a6e826e0
  1. 2
      app/admin/controller/Controller.php
  2. 3
      app/admin/controller/Store.php
  3. 11
      app/store/controller/Store.php

@ -90,7 +90,7 @@ class Controller extends BaseController
} }
} else { } else {
//超级管理员看到所有的 //超级管理员看到所有的
$list = Channel::where('status', 1)->where('is_delete',0 )->select(); $list = Channel::where('status', 1)->where('is_delete',0)->select();
} }
return $list; return $list;
} }

@ -196,6 +196,9 @@ class Store extends Controller
foreach ($list as $key => $value) { foreach ($list as $key => $value) {
$platformList[$value['code']] = $value['name']; $platformList[$value['code']] = $value['name'];
} }
// echo "<pre>";
// print_r($platformList);
// exit();
//$platformList = config('app.platformList'); //$platformList = config('app.platformList');
return $this->renderSuccess($platformList); return $this->renderSuccess($platformList);
} }

@ -19,7 +19,7 @@ use app\admin\model\Store as AdminStoreModel;
use app\common\model\Channel; use app\common\model\Channel;
use app\common\model\PriceSet; use app\common\model\PriceSet;
use app\common\model\OpenShop; use app\common\model\OpenShop;
use app\common\model\UploadFile;
/** /**
* 商家中心控制器 * 商家中心控制器
* Class Store * Class Store
@ -47,6 +47,14 @@ class Store extends Controller
$list = $list->toArray(); $list = $list->toArray();
foreach ($list['data'] as &$value) { foreach ($list['data'] as &$value) {
$value['store_version'] = $value['store_version'] == 0 ? "单商户" : "多商户"; $value['store_version'] = $value['store_version'] == 0 ? "单商户" : "多商户";
$info = UploadFile::detail($value['id_card_face_image']);
$value['id_card_face_image_url'] = $info['preview_url'] ?? "";
$info = UploadFile::detail($value['id_card_back_image']);
$value['id_card_back_image_url'] = $info['preview_url'] ?? "";
$info = UploadFile::detail($value['license_image']);
$value['license_image_url'] = $info['preview_url'] ?? "";
$info = UploadFile::detail($value['legal_person_license_image']);
$value['legal_person_license_image_url'] = $info['preview_url'] ?? "";
} }
} }
return $this->renderSuccess(compact('list')); return $this->renderSuccess(compact('list'));
@ -96,6 +104,7 @@ class Store extends Controller
{ {
// 商城详情 // 商城详情
$model = StoreModel::detail($this->storeId); $model = StoreModel::detail($this->storeId);
return $this->renderSuccess(['storeInfo' => $model]); return $this->renderSuccess(['storeInfo' => $model]);
} }

Loading…
Cancel
Save