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