cp合作方获取接口添加
parent
ec4d180287
commit
c10e05e688
@ -0,0 +1,26 @@
|
||||
<?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));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue