Browse Source

修改新用户和店铺日首单奖励查询

master
Mr. Shuixiang 5 years ago
parent
commit
bd811bcffa
  1. 6
      app/Service/v3/Implementations/SeparateAccountsService.php

6
app/Service/v3/Implementations/SeparateAccountsService.php

@ -14,6 +14,7 @@ use App\Model\v3\Order;
use App\Model\v3\OrderMain;
use App\Model\v3\ServiceReward;
use App\Model\v3\Store;
use App\Model\v3\SystemConfig;
use App\Model\v3\UserRelationBind;
use App\Model\v3\User;
use App\Service\v3\Interfaces\FinancialRecordServiceInterface;
@ -179,6 +180,7 @@ class SeparateAccountsService implements SeparateAccountsServiceInterface
// 判断是新商户:入驻绑定的时候把关系存在SSDB
// =======服务商、市场经理奖励分账 / Start=======
// TODO 后续移到某些地方进行更方便的管理
$MmMpAwardConfig = [
'mm_new_user' => 1,
'mm_new_store' => 25,
@ -305,7 +307,7 @@ class SeparateAccountsService implements SeparateAccountsServiceInterface
// 新用户商户奖励
if ($this->userService->isPlatformNewUser($orderMain->user_id, $orderMain->global_order_id)) {
$awardAmount = 2;
$awardAmount = SystemConfig::query()->where('menu_name','award_new_user')->value('value');
// 旧商户流水 TODO 直接移除或后续考虑移除
$message = [
'money' => $awardAmount,
@ -327,7 +329,7 @@ class SeparateAccountsService implements SeparateAccountsServiceInterface
&& $order->money >= FinancialRecord::OFL_FIRST_AWARD_LIMIT_AMOUNT
) {
$awardAmount = 0.05;
$awardAmount = SystemConfig::query()->where('menu_name','award_each_order')->value('value');;
// 旧商户流水 TODO 直接移除或后续考虑移除
$message = [
'money' => $awardAmount,

Loading…
Cancel
Save