调整种养殖户入驻
This commit is contained in:
parent
1ddb5b2f02
commit
735db0e46d
@ -176,7 +176,6 @@ class MerchantIntentionRepository extends BaseRepository
|
||||
}
|
||||
Db::transaction(function () use ($config, $intention, $data, $create,$margin,$merData,$smsData,$autoCreate) {
|
||||
if ($data['status'] == 1) {
|
||||
if ($intention['type'] == 1) {
|
||||
if ($create) {
|
||||
$merchant = app()->make(MerchantRepository::class)->createMerchant($merData);
|
||||
$data['mer_id'] = $merchant->mer_id;
|
||||
@ -199,7 +198,7 @@ class MerchantIntentionRepository extends BaseRepository
|
||||
$store_service_data['create_time'] = date('Y-m-d H:i:s');
|
||||
Db::name('store_service')->insert($store_service_data);
|
||||
}
|
||||
} else {
|
||||
if ($intention['type'] == 2) {
|
||||
$merId = MerchantIntention::where('uid', $intention['uid'])->where('status', 1)->value('mer_id');
|
||||
if (!empty($merId)) {
|
||||
Merchant::where('mer_id', $merId)->update(['business_status' => 2]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user