mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-07-04 13:02:53 +08:00
发消息页面优化
This commit is contained in:
@ -183,16 +183,21 @@ class AlipayLifeMessageController extends CommonController
|
||||
$this->assign('send_type', empty($alipay_openid) ? 1 : 0);
|
||||
|
||||
// 生活号
|
||||
$where = [];
|
||||
if(!empty($_GET['alipay_life_id']))
|
||||
{
|
||||
$where['id'] = intval(I('alipay_life_id'));
|
||||
$alipay_life_list = M('AlipayLife')->field('id,name')->where(['id'=>intval(I('alipay_life_id'))])->select();
|
||||
} else {
|
||||
$alipay_life_list = [];
|
||||
}
|
||||
$alipay_life_list = M('AlipayLife')->field('id,name')->where($where)->select();
|
||||
$this->assign('alipay_life_list', $alipay_life_list);
|
||||
|
||||
// 生活号分类
|
||||
$alipay_life_category = M('AlipayLifeCategory')->where(['is_enable'=>1])->field('id,name')->select();
|
||||
if(empty($alipay_openid))
|
||||
{
|
||||
$alipay_life_category = M('AlipayLifeCategory')->where(['is_enable'=>1])->field('id,name')->select();
|
||||
} else {
|
||||
$alipay_life_category = [];
|
||||
}
|
||||
$this->assign('alipay_life_category', $alipay_life_category);
|
||||
|
||||
// 参数
|
||||
|
||||
Reference in New Issue
Block a user