request->get('type'))) { return $this->fail('类型参数丢失'); } return $this->dataLists(new GiftPackageLists()); } /** * @notes 充值 * @return \think\response\Json * @author 段誉 * @date 2023/2/23 18:56 */ public function recharge() { $params = (new GiftPackageValidate())->post()->goCheck('recharge', [ 'user_id' => $this->userId, 'terminal' => $this->userInfo['terminal'], ]); $result = GiftPackageLogic::recharge($params); if (false === $result) { return $this->fail(GiftPackageLogic::getError()); } return $this->data(GiftPackageLogic::getReturnData()); } }