<?php
namespace Api\Controller;
use Think\Controller;
use User\Api\MemberApi;
/**
 * 用户操作接口
 *
 */

class PartnerController extends Controller{

    public function getPartnerList() {
//        var_dump(md5(sha1('PARTNER_ID') . 'PARTNER_ID'));die();
        if (md5(sha1('PARTNER_ID') . 'PARTNER_ID') != $_REQUEST['code']){
            exit("error");
        }

        $data = M('partner','tab_')->field("id,partner name")->select();

        header('Content-Type:application/json; charset=utf-8');
        exit(json_encode($data));

    }

}