|
@@ -112,7 +112,10 @@ class AuctionProduct extends BaseModel
|
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
|
*/
|
|
|
public static function user_product($data, $uid){
|
|
|
- $model = self::where('uid', $uid)->order('id DESC');
|
|
|
+ $model = self::alias('a')
|
|
|
+ ->field('a.*,b.nickname')
|
|
|
+ ->leftJoin('auction b', 'a.auction_id = b.id')
|
|
|
+ ->where('a.uid', $uid)->order('a.id DESC');
|
|
|
$model->page($data['page'], $data['limit']);
|
|
|
|
|
|
$list = $model->select();
|