调试平台手续费分润
This commit is contained in:
parent
30aa2e2e98
commit
a70a4de2e3
@ -350,6 +350,7 @@ class StoreOrderRepository extends BaseRepository
|
|||||||
/** @var MerchantRepository $merchantRepo */
|
/** @var MerchantRepository $merchantRepo */
|
||||||
$merchantRepo = app()->make(MerchantRepository::class);
|
$merchantRepo = app()->make(MerchantRepository::class);
|
||||||
$merchantRepo->merId = $order->mer_id;
|
$merchantRepo->merId = $order->mer_id;
|
||||||
|
$merchantRepo->forceMargin = false;
|
||||||
[$_payPrice, $finance] = $merchantRepo->autoMargin($_payPrice, $order, $finance, $financeSn, $i++);
|
[$_payPrice, $finance] = $merchantRepo->autoMargin($_payPrice, $order, $finance, $financeSn, $i++);
|
||||||
}
|
}
|
||||||
$finance[] = [
|
$finance[] = [
|
||||||
|
@ -53,6 +53,7 @@ class AutoMarginJob implements JobInterface
|
|||||||
$merchant->ot_margin = $merchant->paid_margin;
|
$merchant->ot_margin = $merchant->paid_margin;
|
||||||
$merchant->is_margin = MerchantRepository::PaidMargin;
|
$merchant->is_margin = MerchantRepository::PaidMargin;
|
||||||
$merchant->save();
|
$merchant->save();
|
||||||
|
$job->delete();
|
||||||
} catch (\Exception $exception) {
|
} catch (\Exception $exception) {
|
||||||
Log::info('更新商户保证金出错:' . var_export($exception, 1));
|
Log::info('更新商户保证金出错:' . var_export($exception, 1));
|
||||||
} finally {
|
} finally {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user