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