success('返回成功', $this->request->param()); } /** * 无需登录的接口 * */ public function test1() { $this->success('返回成功', ['action' => 'test1']); } /** * 需要登录的接口 * */ public function test2() { $this->success('返回成功', ['action' => 'test2']); } /** * 需要登录且需要验证有相应组的权限 * */ public function test3() { $this->success('返回成功', ['action' => 'test3']); } public function testBalancePay(){ Service::submitOrder([ 'amount' => '1.2', 'orderid' => '2345678903456789', 'type' => 'balance', 'title' => '测试余额支付', 'notifyurl' => '', 'returnurl' => '', 'method' => 'all', 'openid' => '', ]); } }