|
|
@@ -87,16 +87,19 @@ class Market extends Api
|
|
|
|
|
|
|
|
|
//求购列表
|
|
|
- public function buyingList()
|
|
|
+ public function buyingList(ProductBuying $productBuying)
|
|
|
{
|
|
|
-
|
|
|
+ $params = $this->request->post();
|
|
|
+ $validate = \think\Loader::validate('Market');
|
|
|
+ if(!$validate->scene('announcement')->check($params)) $this->error($validate->getError());
|
|
|
+ $this->success('ok', $productBuying::getBuyingList($params['product_id']));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 发起求购
|
|
|
* @return void
|
|
|
*/
|
|
|
- public function setBuying(LedgerWalletModel $ledgerWalletModel, ProductBuying $productBuying, ProductOrder $productOrder)
|
|
|
+ public function setBuying(LedgerWalletModel $ledgerWalletModel, ProductBuying $productBuying)
|
|
|
{
|
|
|
|
|
|
$params = $this->request->post();
|