This commit is contained in:
Your Name
2020-06-10 13:23:50 +08:00
parent 1371b0a37a
commit 3d19b6129b
477 changed files with 86 additions and 117 deletions

View File

@ -23,6 +23,7 @@ class Index extends Base{
* 首页
*/
public function index(){
echo 'hello';die;
echo request()->ip();die;
$m = new M();
hook('mobileControllerIndexIndex',['getParams'=>input()]);

0
hyhproject/app/controller/UserLevel.php Normal file → Executable file
View File

View File

@ -38,7 +38,7 @@ class Uservouchers extends Base{
if(1 == $vouchersType || 2 == $vouchersType){
$vouchersNames = [1=>'expectedProductNum',2=>'expectedCouponsNum'];
$m->setTable('user_vouchers_notice');
$list = $m->getSelect(['userId'=>$userId,$vouchersNames[$vouchersType]=>['neq',0],'isShow'=>1],$vouchersNames[$vouchersType].' num,remark,moneyType,createTime','id DESC');
$list = $m->getSelect(['userId'=>$userId,$vouchersNames[$vouchersType]=>['>=',0.01],'isShow'=>1],$vouchersNames[$vouchersType].' num,remark,moneyType,createTime','id DESC');
if(!empty($list['Rows'])){
foreach ($list['Rows'] as &$v) {
$v['createTime'] = date('Y-m-d H:i:s',$v['createTime']);