This commit is contained in:
Jerry Yan 2020-12-06 20:32:35 +08:00
parent 8182912f99
commit 1d8973015d
3 changed files with 7 additions and 7 deletions

View File

@ -1,5 +0,0 @@
<?php
$data['show']=0;
$data['img'][0] = ['src'=>'http://img.juzi199.com/static/app2/img/startup_1.jpg','href'=>''];
$data['img'][1] = ['src'=>'http://img.juzi199.com/static/app2/img/startup_1.jpg','href'=>''];
exit(json_encode($data));

View File

@ -41,8 +41,14 @@ class UserLevel extends Base
$goodsType = 3;
$sm = Model('common/SysSummary');
$sysData= $sm->getInfo('toPaySlow');
$helpSaleInfo = Db::name('user_vouchers_summary')->where(['userId'=>$userId])->find();
$helpSaleNum = 0;
if (!empty($helpSaleInfo)) {
$helpSaleNum = $helpSaleInfo['helpSaleNum'];
}
return [
'zgTimes'=>Db::name('orders')->where(compact('userId','goodsType'))->count(),
'myZgA'=>$helpSaleNum,
'zgAmounts'=>$sysData['toPaySlow'],
];
}

View File

@ -443,8 +443,7 @@ class Users extends Base{
//二、当【助购值】的值小于设置的【全亮共欢迎您助购所得】值时,按【助购值】全值给予即可。
$sm = Model('common/SysSummary');
$vm = new UserVouchers();
// registerMaxGetProductCoupon
$get = (float)dataConf('helpSaleCouponsCalBase');
$get = (float)dataConf('registerMaxGetProductCoupon');
$ssm = Model('common/Table');
$ssm->setTable('sys_summary');
$toPayInfo = $ssm->getInfo(['id'=>1],'toPaySlow');