1 //where条件数组拼接 2 $where['status'] = 1; 3 $maps['id'] = ['in', implode(',', $r_ids)]; 4 $maps['uid'] = $where['uid']; 5 $maps['_logic'] = 'OR'; 6 $where['_complex'] = $maps;
打印出来效果 此时 id 与 uid 的关系就是or的关系
1 //where条件数组拼接 2 $where['status'] = 1; 3 $maps['id'] = ['in', implode(',', $r_ids)]; 4 $maps['uid'] = $where['uid']; 5 $maps['_logic'] = 'OR'; 6 $where['_complex'] = $maps;
打印出来效果 此时 id 与 uid 的关系就是or的关系
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。