post()->goCheck('add'); $result = PropertyOrderLogic::add($params); if (true === $result) { return $this->success('下单成功', [], 1, 1); } return $this->fail(PropertyOrderLogic::getError()); } /** * 提现申请 * @return \think\response\Json */ public function withdrawCash() { $params = (new PropertyValidate())->post()->goCheck('withdrawCash', [ 'user_id' => $this->userId, 'user_info' => $this->userInfo ]); $result = PropertyCommissionLogic::withdrawCash($params); if (false === $result) { return $this->fail(PropertyCommissionLogic::getError()); } return $this->success('申请成功,等待审核', [], 1, 1); } /** * 下单列表 * @return \think\response\Json */ public function orderLists() { return $this->dataLists(new PropertyOrderLists()); } /** * 进出记录列表 * @return \think\response\Json */ public function surplusLists() { return $this->dataLists(new PropertySurplusLogLists()); } /** * 分成列表 * @return \think\response\Json */ public function commissionLists() { return $this->dataLists(new PropertyCommissionLists()); } }