摘要: /** * 创建邀请码 * @param $length * @return array * @author Mr lj */ function createInvitationCode($num=1,$length=8) { $sign = ['_','#','$','&','*','-']; $mixedArr = array_merge(range('a','z'... 阅读全文
posted @ 2019-01-05 23:46 golang-jack 阅读(817) 评论(0) 推荐(0)
摘要: public function index($page=1,$rows=20) { $syscode = M('SystemCode'); // 实例化User对象 $count = $syscode->where('code_state=0')->count();// 查询满足要求的总记录数 $list = $syscode... 阅读全文
posted @ 2019-01-05 23:31 golang-jack 阅读(216) 评论(0) 推荐(0)