|
|
@@ -241,12 +241,12 @@ class UserController extends BaseController {
|
|
|
if (!$isMax) {
|
|
|
$userDecPvSum = User::sumDevPvByUserId($userId); // 用户所有报单PV总和
|
|
|
// 如果总和小于级别业绩
|
|
|
- if ($userDecPvSum < $levelPerf) {
|
|
|
+ if ($isObserve && ($userDecPvSum < $levelPerf)) {
|
|
|
return static::notice('请联系客服人员核对业绩',400);
|
|
|
}
|
|
|
$nextLevelPerf = DeclarationLevel::getNextDecPref($levelPerf)['PERF'];
|
|
|
// 如果总和超过了下一级业绩
|
|
|
- if ($userDecPvSum >= $nextLevelPerf) {
|
|
|
+ if ($isObserve && ($userDecPvSum >= $nextLevelPerf)) {
|
|
|
return static::notice('请联系客服人员核对业绩',400);
|
|
|
}
|
|
|
$type = $isObserve ? 1 : 2;
|