时间:2021-07-01 10:21:17 帮助过:3人阅读
(('/^public_/', ROUTE_A) || ROUTE_M =='admin' && ROUTE_C =='index' || (ROUTE_A, ('login' ((['pc_hash']) && ['pc_hash'] != '' && (['pc_hash'] == ['pc_hash' ((['pc_hash']) && ['pc_hash'] != '' && (['pc_hash'] == ['pc_hash' 'hash_check_false'),
phpcms给函数进行了hash验证,因此,现在方法是这样写的:
public_mobile_getjson_ids() {
= (['modelid' = (['id'->db->set_model( = ->db->->db->table_name = .'_data' = ->db->get_one(('id'=>),'mobile_type'(['mobile_type' = ('|', ',', ['mobile_type' = (,',' = "id IN()" = ->mobile_db = pc_base::load_model ( 'mobile_type_model' = ->mobile_db->select(,'id,type_name'db->table_name = $tablename;
//$datas = $this->db->select($where,'id,title');
( ['sid'] = 'v'.['id'((CHARSET)=='gbk') ['type_name'] = ('gbk', 'utf-8', ['type_name'[] = json_encode(
js部分的getJSON是这样写的:
"?m=content&c=content&a=public_mobile_getjson_ids&modelid="+modelid+"&id="+id, newrelation_ids = ''(json=='没有添加相关文章' += "·"+n.type_name+" "'#mobile_type_text'
就好了。要注意phpcms里面调用远程地址,方法前加上public啊!!
http://www.bkjia.com/PHPjc/740287.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/740287.htmlTechArticle今天遇到一个getJSON的问题,回调函数一直无法执行,检查了生成的json数据的格式绝对没问题,getJSON的js语法也没问题,但就是alert不出来传...