111
chenl
2018-12-10 479d2f6c91dc021dddcfa5a1c9a7bb1ee02eb6fb
111
1 files added
22 ■■■■■ changed files
api/testApi.php 22 ●●●●● patch | view | raw | blame | history
api/testApi.php
New file
@@ -0,0 +1,22 @@
<?php
/**
 * 应用权限组绑定用户组 Api 测试类
 *
 */
// require '../web/common/interface.func.php';
$url = "https://we.xiaoweizhongguo.com/api/appGroupApi.php";
$post_data = array(
    'type' => "8",
    'name' => "longbing_card",
    'openid' => "100000120181210469642356",
);
include  '../web/common/interface.func.php';
$paramter = makeInterfaceParam($post_data, "1000001");
$result = json_decode(doCurlPostRequest($url, $paramter, 100), JSON_UNESCAPED_UNICODE);
if ($result != null && $result != "" && $result['rspCode'] == 'e00000') {
    exit("true");
} else {
    exit($result['rspCode']);
}