success('获取成功',$result); } /** * @notes 设置支付方式 * @return \think\response\Json * @throws \Exception * @author 段誉 * @date 2023/2/23 16:27 */ public function setPayWay() { $params = $this->request->post(); $result = (new PayWayLogic())->setPayWay($params); if (true !== $result) { return $this->fail($result); } return $this->success('操作成功',[],1, 1); } }