|
|
@@ -84,7 +84,25 @@ class User extends Api
|
|
|
$this->success('', $list);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ /**
|
|
|
+ * 获取我的Nft列表
|
|
|
+ * param int $type_id 0总览 1转让中 2已转让 3存储中 4已赠送 5已提货
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function getMyNftList(ProductOrder $productOrder)
|
|
|
+ {
|
|
|
+ $typeId = $this->request->post('type_id/d', 0);
|
|
|
+ $where = self::getNftWhere($typeId, $productOrder);
|
|
|
+ $list = $productOrder->alias('a')
|
|
|
+ ->join("product_list b", "b.id = a.product_id", "left")
|
|
|
+ ->field('a.id as order_id,a.product_id,'.'b.'.$this->lan.'_name as name,b.thum as img_url,a.price,a.status,a.type_id, count(a.num) as hold_num')
|
|
|
+ ->where('a.user_id', $this->auth->id)
|
|
|
+ ->group('a.product_id')
|
|
|
+ ->where($where)
|
|
|
+ ->order('a.id DESC')
|
|
|
+ ->paginate($this->pageSize);
|
|
|
+ $this->success('', $list);
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 余额记录信息
|