创建api文件:include/applibapi/api/Default/AppEn.cardinfo.in.php
api文件文件内容
<?php
$car_id = Plug_Set_Data('ic_carid');
$infoarr = plug_query_array("SELECT * FROM `bs_php_cardseries` WHERE `car_name` = '$car_id' LIMIT 1");
if($infoarr){
Plug_Echo_Info( "{$infoarr['car_admin_beizhu']}", 200);
}else{
Plug_Echo_Info( "激活码不存在", 200);
}
3.调用
ic_carid=充值卡号
api=cardinfo.in
支持car_admin_beizhu改数据表bsphp_cardseries 所有字段