* Add param type for admin method.

This commit is contained in:
wangyidong
2023-11-22 13:46:21 +08:00
parent 9dbed5f0ab
commit bfd8107a73
3 changed files with 35 additions and 25 deletions
+2 -2
View File
@@ -20,9 +20,9 @@ class adminModel extends model
* @param string $url
* @param string $formvars
* @access public
* @return void
* @return string
*/
public function postAPI($url, $formvars = '')
public function postAPI(string $url, string $formvars = ''): string
{
return common::http($url, $formvars);
}