wangtengyu
2018-12-04 317fc686ce40b6d4b811b33ef98168eb77a92ab5
通用接口调用文件 临时修改 by 王腾宇
1 files modified
6 ■■■■■ changed files
api/common/interface.func.php 6 ●●●●● patch | view | raw | blame | history
api/common/interface.func.php
@@ -13,6 +13,7 @@
    "1000001"=>"3a03c2e6f2f911e8b9245254009bf9ba",
    "1000002"=>"466a50d8f2f911e8b9245254009bf9ba",
    "1000003"=>"53cfae5df2f911e8b9245254009bf9ba",
);
@@ -28,13 +29,15 @@
    $retData = array();
    $sysKey = $systemId[substr($param["id"],0,7)]; 
    if ($sysKey == null){
        $rspData["rspMsg"] = "e00001";
        $retData["rspCode"] = "e00001"; 
    } else {
        if (checkSign($param,$sysKey)){
            $rspData["rspMsg"] = "e00001";
            $retData["rspCode"] = "e00000";
            $retData["repData"] = json_decode($param["data"],true); 
        } else {
            $rspData["rspMsg"] = "e00001";
            $retData["rspCode"] = "e00002"; 
        }    
    }  
@@ -120,6 +123,5 @@
    );
    $context = stream_context_create($options);
    $result = file_get_contents($url, false, $context);
    return $result;
}