|
@@ -5,7 +5,7 @@ namespace app\index\controller;
|
|
|
class Index
|
|
|
{
|
|
|
// const admin_url = 'host.docker.internal';
|
|
|
- const admin_url = 'docker.hostip';
|
|
|
+ const admin_url = 'http://docker.hostip:8080';
|
|
|
|
|
|
protected function request($params)
|
|
|
{
|
|
@@ -18,7 +18,7 @@ class Index
|
|
|
}
|
|
|
public function CheckOrder(){
|
|
|
$order_sn = input('param.order_sn');
|
|
|
- $result = http_get(self::admin_url . ':8080/CheckOrder' ,['order_sn' => $order_sn]);
|
|
|
+ $result = http_get(self::admin_url . '/CheckOrder' ,['order_sn' => $order_sn]);
|
|
|
if($result == false){
|
|
|
json_return(500,[],'网络错误');
|
|
|
}
|
|
@@ -26,8 +26,8 @@ class Index
|
|
|
json_return($result['code'],[],$result['msg']);
|
|
|
}
|
|
|
json_success($result['data']);
|
|
|
-
|
|
|
}
|
|
|
+
|
|
|
public function CheckFcode(){
|
|
|
$code = input('param.code');
|
|
|
$result = http_get(self::admin_url . ':8080/CheckFcode' ,['code' => $code]);
|