withHeaders([ 'Authorization' => 'Bearer '. $this->token, ])->json('get','http://localhost/api/jiesuanManage/financeCheck/list',[ 'status' => 2 ]); $res->dump(); } public function testCheck() { $res = $this->withHeaders([ 'Authorization' => 'Bearer '. $this->token, ])->json('post','http://localhost/api/jiesuanManage/financeCheck/check',[ 'status' => 2, 'id' => 1, ]); $res->dump(); } public function testremit() { $res = $this->withHeaders([ 'Authorization' => 'Bearer '. $this->token, ])->json('post','http://localhost/api/jiesuanManage/financeCheck/remit',[ 'status' => 4, 'id' => 1, 'pay_channel' => '治愈', 'pay_no' => '13214321', 'remark' => 'kjlj', ]); $res->dump(); } }