wangtengyu
2018-12-13 67827bed1e0250927643e7a91e68a418cba06cfb
更新配置文件 by 王腾宇
4 files modified
27 ■■■■■ changed files
application/admin/conf/agent_conf.php 3 ●●●● patch | view | raw | blame | history
application/admin/conf/api_path.php 6 ●●●● patch | view | raw | blame | history
application/admin/controller/UserList.php 8 ●●●●● patch | view | raw | blame | history
application/admin/controller/UserOrderList.php 10 ●●●●● patch | view | raw | blame | history
application/admin/conf/agent_conf.php
@@ -4,8 +4,9 @@
 * @Author: 王腾宇 
 * @Date: 2018-12-13 09:55:11 
 * @Last Modified by: 王腾宇
 * @Last Modified time: 2018-12-13 09:57:40
 * @Last Modified time: 2018-12-13 10:51:44
 */
// 代理商邀请码
global $invitation_code;
$invitation_code = "ICA001";
application/admin/conf/api_path.php
@@ -4,17 +4,21 @@
 * @Author: 王腾宇 
 * @Date: 2018-12-13 09:38:35 
 * @Last Modified by: 王腾宇
 * @Last Modified time: 2018-12-13 09:51:47
 * @Last Modified time: 2018-12-13 10:52:43
 */
// 商城地址
global $ec_shop_root_path;
$ec_shop_root_path = "http://shop.iemsoft.cn/";
// 微擎地址
global $we_root_path;
$we_root_path = "https://we.xiaoweizhongguo.com/";
// 根据邀请码查询用户订单
global $user_order_list_path;
$user_order_list_path = $ec_shop_root_path."api/userApi.php/getUserOrderList";
// 根据邀请码获取用户信息
global $user_list_path;
$user_list_path = $ec_shop_root_path."api/userApi.php/getUserList";
application/admin/controller/UserList.php
@@ -8,6 +8,8 @@
namespace app\admin\controller;
require dirname(__FILE__) . '/../../common/util/interface.func.php';
require dirname(__FILE__) . '/../conf/api_path.php';
require dirname(__FILE__) . '/../conf/agent_conf.php';
class UserList extends Base
{
@@ -17,10 +19,10 @@
    public function index()
    {
        $retData= toPost("http://shop.iemsoft.cn/api/userApi.php/getUserList",array(
            "invitationCode"=>"ICA001"
        $retData = toPost($GLOBALS["user_list_path"],array(
            "invitationCode"=>$GLOBALS["invitation_code"]
        ),"1000001");
        echo($retData);
        $list = array();
        if ($retData["rspCode"]==="e00000") {
            $list = $retData["rspData"];
application/admin/controller/UserOrderList.php
@@ -7,6 +7,9 @@
namespace app\admin\controller;
require dirname(__FILE__) . '/../../common/util/interface.func.php';
require dirname(__FILE__) . '/../conf/api_path.php';
require dirname(__FILE__) . '/../conf/agent_conf.php';
class UserOrderList extends Base
{
    // 页面初始化
@@ -14,10 +17,9 @@
    {}
    public function index()
    {
        $retData= toPost("http://shop.iemsoft.cn/api/userApi.php/getUserOrderList",array(
            "invitationCode"=>"ICA001"
    {
        $retData= toPost($GLOBALS['user_order_list_path'],array(
            "invitationCode"=>$GLOBALS['invitation_code']
        ),"1000001");
        $list = array();
        if ($retData["rspCode"]==="e00000") {