更新申请执照数组
This commit is contained in:
parent
c00a035370
commit
8f094bd97f
@ -1593,19 +1593,12 @@ class Auth extends BaseController
|
|||||||
if ($status == 1) {
|
if ($status == 1) {
|
||||||
$repository->updateStatus($id, $data);
|
$repository->updateStatus($id, $data);
|
||||||
$intention = Db::name('merchant_intention')->where('mer_intention_id', $id)->where('type', 1)->find();
|
$intention = Db::name('merchant_intention')->where('mer_intention_id', $id)->where('type', 1)->find();
|
||||||
$merLicenseImage = '';
|
|
||||||
if (!empty($intention['images'])) {
|
if (!empty($intention['images'])) {
|
||||||
$merLicenseImageArray = explode(',', $intention['images']);
|
$merLicenseImageArray = explode(',', $intention['images']);
|
||||||
$merLicenseImage = $merLicenseImageArray[0] ?? '';
|
app()->make(ConfigValueRepository::class)->setFormData([
|
||||||
|
'mer_certificate' => $merLicenseImageArray
|
||||||
|
], $intention['mer_id']);
|
||||||
}
|
}
|
||||||
$merCertificate = merchantConfig($intention['mer_id'], 'mer_certificate');
|
|
||||||
if (!is_array($merCertificate)) {
|
|
||||||
$merCertificate = explode(',', $merCertificate);
|
|
||||||
}
|
|
||||||
$merCertificate[0] = $merLicenseImage;
|
|
||||||
app()->make(ConfigValueRepository::class)->setFormData([
|
|
||||||
'mer_certificate' => $merCertificate
|
|
||||||
], $intention['mer_id']);
|
|
||||||
}
|
}
|
||||||
Db::name('merchant_intention')->where('mer_intention_id', $id)->where('type', 1)->update($updData);
|
Db::name('merchant_intention')->where('mer_intention_id', $id)->where('type', 1)->update($updData);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user