...
|
...
|
@@ -92,6 +92,15 @@ class Index extends WechatBase |
|
|
$goods_ids[] = $value['goods_id'];
|
|
|
}
|
|
|
}
|
|
|
//去除余额不足的广告
|
|
|
$goods = Db::name('goods')->where(['admin_deletetime'=>0])->select();
|
|
|
$goods_ids = [];
|
|
|
foreach($goods as $key => $g){
|
|
|
$money = Db::name('admin')->where(['id'=>$g['admin_id']])->value('money');
|
|
|
if($money<$g['exp']){
|
|
|
$goods_ids[] = $g['id'];
|
|
|
}
|
|
|
}
|
|
|
$goodsModel = new Goods();
|
|
|
$data = $goodsModel->selectPageData(['id'=>['not in',$goods_ids]],$page,$pageNum);
|
|
|
foreach($data as $key => $vo){
|
...
|
...
|
|