join查詢php
$join = [ ['yuangong w','a.user_id=w.yid'], ]; $user = Db::table('tp_users')->alias('a')->join($join)->field('a.openid')->select();