1234567891011121314151617 |
- <?php
- namespace app\api\validate\test;
- use app\api\validate\test\Test;
- use app\api\response\ZskkErrorResponse;
- class TestValidate {
- public static function checkTest($params) {
- # code...
- $validate = new Test;
- if (!$validate->check($params)) {
- $msg = $validate->getError();
- ZskkErrorResponse::throwParamsError(2001,$msg);
- }
- }
- }
|