处理商户后台资质展示的错误

This commit is contained in:
root 2023-05-16 18:03:02 +08:00
parent 8d9080f76b
commit 387636b8fc

View File

@ -147,6 +147,9 @@ class Merchant extends BaseController
$delivery = $repository->get($this->request->merId()) + systemConfig(['tx_map_key']);
$data = array_merge($data,$delivery);
$data['sys_bases_status'] = systemConfig('sys_bases_status') === '0' ? 0 : 1;
if (!empty($data['mer_certificate']) && !is_array($data['mer_certificate'])) {
$data['mer_certificate'] = explode(',', $data['mer_certificate']);
}
return app('json')->success($data);
}