更新商户类型code

This commit is contained in:
yaooo 2023-09-05 16:37:30 +08:00
parent ae3cac7d9a
commit eda17104f2

View File

@ -246,7 +246,7 @@ class Merchant extends BaseController
$delivery = $repository->get($id) + systemConfig(['tx_map_key']);
$data = array_merge($data,$delivery);
$data['sys_bases_status'] = systemConfig('sys_bases_status') === '0' ? 0 : 1;
$data['type_code'] = Db::name('MerchantType')->where('mer_type_id', $data['type_id'])->value('type_code');
return app('json')->success($data);
}