店铺申请同步店铺资质

This commit is contained in:
luofei 2024-03-07 16:10:05 +08:00
parent b7cad3cee8
commit d865bf4fdb

View File

@ -183,9 +183,11 @@ class MerchantIntentionRepository extends BaseRepository
if ($data['status'] == 1) {
if ($create) {
$merchant = app()->make(MerchantRepository::class)->createMerchant($merData);
if (!empty($intention['images'])) {
app()->make(ConfigValueRepository::class)->setFormData([
'mer_certificate' => $data['mer_certificate']
'mer_certificate' => $intention['images']
], $merchant->mer_id);
}
$data['mer_id'] = $merchant->mer_id;
$data['uid'] = $intention['uid'];
$data['reg_admin_id'] = $autoCreate ? 0: $merchant['merchant_admin']['merchant_admin_id'];