Commit 04330a89 authored by hj's avatar hj

更新

parent abdc4464
......@@ -29,7 +29,7 @@ class CustomerController extends Controller
public function getCustomer(Request $request)
{
$customerCode = $request->get('customer_code');
$customerCode = $request->get('cusCode');
if(!$customerCode){
return Response::ok('客户编号不存在!');
}
......
......@@ -31,15 +31,12 @@ class ThirdPlatformService extends PlatformAbstractService
if($platformInfo['platform_type'] == 'self'){
$params = $platformInfo['platform_params'];
if(empty($params)) return true;
if(!empty($params['whiteList'])){
if(in_array($ip,$params['whiteList'])){
return true;
}
if(!empty($params['whiteList']) && in_array($ip,$params['whiteList'])){
return true;
}
return false;
}else{
return true;
}
return true;
}
public function createPlatformToken($platformName)
......
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