@@ -22,9 +22,12 @@ class AuthController extends Controller
public function test(){
//test
- return $this->error(0);
+ if(env("APP_DEBUG")){
+ return $this->error(0);
+ }else{
//product
-// return $this->api(1);
+ return $this->api(1);
+ }
}
/**
* @api {post} /api/auth/login 登陆(login)