This commit is contained in:
2020-09-21 08:15:51 +08:00
parent 539afccbc7
commit d2593d1c87
8 changed files with 20 additions and 22 deletions

View File

@ -103,15 +103,8 @@ class Carts extends CCarts{
$tm = Model('common/Table');
$tm->setTable('shops');
//换算为3级循环等级
if(0 == $rs['shopLevel']){
$maxSaleMoney = dataConf('helpLevel0MaxSaleMoney');
}else{
//$nowLevel = $rs['shopLevel'] % 3;
$tm->setTable('users');
//最大可销售金额
$maxSaleMoney = $tm->getField(['userId'=>$rs['shopUserId']],'helpMaxSaleMoney');
}
//助微吧限销售额为≥?元 9900 。 提示具体功能没实现合并原“初始”、“一级”、“二级”、“三级”4项 @ 2020/09/19
$maxSaleMoney = dataConf('helpLevel0MaxSaleMoney');
$tm->setTable('shops');
//当前销售值
$nowSaleMoney = $tm->getSum(['userId'=>$rs['shopUserId']],'helpSaleMoney');