提交 a32048c7 编写于 作者: weixin_47267244's avatar weixin_47267244

修复测试

上级 7fcb22a1
......@@ -48,13 +48,8 @@ class IndexController extends HttpController
* 测试登录.
*
* @Action
*
* @param string $phone
* @param string $password
*
* @return mixed
*/
public function testLogin($phone, $password)
public function testLogin(string $phone, string $password): array
{
$request = new LoginRequest();
$request->setPhone($phone);
......@@ -76,11 +71,9 @@ class IndexController extends HttpController
/**
* @Action
*
* @param array|object $phone
*
* @return mixed
* @param array|object $data
*/
public function test($data)
public function test($data): array
{
$request = ProtobufUtil::newMessage(TestRequest::class, $data);
// @phpstan-ignore-next-line
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册