Commit 5f017178 authored by Morson's avatar Morson

调整用户中心Dingxiang服务

parent 9b05be94
......@@ -22,7 +22,7 @@ class Dingxiang extends Client
*/
public static function registerDun($others)
{
return self::invoke('/dun/registerDun', func_get_args());
return self::call('dun.registerDun', compact('others'));
}
/**
......@@ -34,7 +34,7 @@ class Dingxiang extends Client
*/
public static function loginDun($others)
{
return self::invoke('/dun/loginDun', func_get_args());
return self::call('dun.loginDun', compact('others'));
}
/**
......@@ -45,6 +45,6 @@ class Dingxiang extends Client
*/
public static function captcha($others)
{
return self::invoke('/dun/captcha', func_get_args());
return self::call('dun.captcha', compact('others'));
}
}
\ No newline at end of file
......@@ -38,7 +38,7 @@ class PhoneCode extends Client
*/
public static function send(string $phone, $type = '')
{
return self::invoke('/phoneCode/send', func_get_args());
return self::call('phoneCode.send', compact('phone', 'type'));
}
/**
......@@ -50,7 +50,7 @@ class PhoneCode extends Client
*/
public static function check(string $phone, string $code)
{
return self::invoke('/phoneCode/check', func_get_args());
return self::call('phoneCode.check', compact('phone', 'code'));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment