|
|
@@ -7,7 +7,7 @@ use app\common\model\ProductOrder;
|
|
|
use app\common\model\LedgerSmhChangeModel;
|
|
|
use app\common\model\LedgerTokenChangeModel;
|
|
|
use app\common\model\LedgerWalletModel;
|
|
|
-use app\common\model\OfflineWithdrawRecordModel;
|
|
|
+use app\common\model\ProductTransfer;
|
|
|
use app\common\model\TeamLevelModel;
|
|
|
use app\common\model\UserModel;
|
|
|
use app\common\model\ParametersModel;
|
|
|
@@ -72,7 +72,7 @@ class User extends Api
|
|
|
* param int $type_id 0总览 1转让中 2已转让 3存储中 4已赠送 5已提货
|
|
|
* @return void
|
|
|
*/
|
|
|
- public function getNftList(ProductOrder $productOrder)
|
|
|
+ public function getNftList(ProductOrder $productOrder, ProductTransfer $productTransfer)
|
|
|
{
|
|
|
$typeId = $this->request->post('type_id/d', 0);
|
|
|
$productId = $this->request->post('product_id/d', 0);
|
|
|
@@ -88,6 +88,10 @@ class User extends Api
|
|
|
->where($where)
|
|
|
->order('a.id DESC')
|
|
|
->paginate($this->pageSize);
|
|
|
+ //地板价格
|
|
|
+ foreach ($list as &$item) {
|
|
|
+ if($item->price == 0) $item->floor_price = $productTransfer::getTransferMinPrice($item->product_id);
|
|
|
+ }
|
|
|
$this->success('', $list);
|
|
|
}
|
|
|
|