Commit 6e052986 authored by hujun's avatar hujun

处理错误的url

parent c92954b3
...@@ -32,4 +32,13 @@ class Index extends Basic ...@@ -32,4 +32,13 @@ class Index extends Basic
return $this->response("request success","200",$result); return $this->response("request success","200",$result);
} }
/**
* 处理错误的url
*
* @return type
*/
public function miss() {
return $this->response('101','URL is error');
}
} }
...@@ -48,6 +48,9 @@ Route::group('api',[ ...@@ -48,6 +48,9 @@ Route::group('api',[
//get //get
'sendSms/:phone' => ['api/member/sendSms', ['method' => 'get']], //发送短信 'sendSms/:phone' => ['api/member/sendSms', ['method' => 'get']], //发送短信
'index' => ['api/member/index', ['method' => 'get']], 'index' => ['api/member/index', ['method' => 'get']],
//get broker
'getBroker'=> ['api/broker/index',['method'=>'get']],
//post member //post member
...@@ -59,4 +62,5 @@ Route::group('api',[ ...@@ -59,4 +62,5 @@ Route::group('api',[
'shopDetail' => ['api/shop/getShopDetail', ['method' => 'get']], 'shopDetail' => ['api/shop/getShopDetail', ['method' => 'get']],
]); ]);
\ No newline at end of file Route::miss('api/index/miss');//处理错误的url
\ No newline at end of file
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