You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
557 B
PHTML

<?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));
}
}