1.数据返回会大包小,且小有多
2.数据筛选;
Payment(类model)
::with(['userPayment' => function ($query)use($uid) { $query->where('uid', $uid);}])->get()with方法 $uid 过滤条件