|
|
@@ -593,15 +593,15 @@ class CalcServeBonusCalc extends BaseObject {
|
|
|
if ( $validPvPcs <= 0 ) continue;
|
|
|
|
|
|
// 查询会员产生时,填写的报单中心
|
|
|
-// $bonusUserId = DecOrder::find()->where('TO_USER_ID=:TO_USER_ID', [':TO_USER_ID' => $userId])->select('DEC_ID')->column();
|
|
|
-// //判断parent的报单中心级别 和 服务奖比例
|
|
|
-// //计算级别之后更新过userInfo的缓存,缓存中级别发生了变化
|
|
|
-// $bonusUserInfo = CalcCache::getUserInfo($bonusUserId, $this->_periodNum);
|
|
|
-// $isDec = $bonusUserInfo['IS_DEC'];
|
|
|
-// if ($isDec == 0) {
|
|
|
-// return self::LOOP_CONTINUE; // 如果不是报单中心则跳过循环
|
|
|
-// }
|
|
|
-//
|
|
|
+ $bonusUserId = DecOrder::find()->where('TO_USER_ID=:TO_USER_ID', [':TO_USER_ID' => $userId])->select('DEC_ID')->column();
|
|
|
+ //判断parent的报单中心级别 和 服务奖比例
|
|
|
+ //计算级别之后更新过userInfo的缓存,缓存中级别发生了变化
|
|
|
+ $bonusUserInfo = CalcCache::getUserInfo($bonusUserId, $this->_periodNum);
|
|
|
+ $isDec = $bonusUserInfo['IS_DEC'];
|
|
|
+ if ($isDec == 0) {
|
|
|
+ return self::LOOP_CONTINUE; // 如果不是报单中心则跳过循环
|
|
|
+ }
|
|
|
+
|
|
|
// $decRoleId = $bonusUserInfo['DEC_ROLE_ID'];
|
|
|
// if( !$decRoleId ) return self::LOOP_CONTINUE;
|
|
|
// if( !isset($this->_decRoleConfig[$decRoleId]) ) return self::LOOP_CONTINUE;
|