发布v2.6.3版本
This commit is contained in:
@@ -47,8 +47,9 @@ $(document).ready(function(){
|
||||
get('autherkey_{rand}').readOnly=true;
|
||||
get('autherkey_{rand}').value=da.aukey;
|
||||
$('#auther_enddt{rand}').html(jm.uncrypt(da.enddt));
|
||||
var str = jm.uncrypt(da.yuming);
|
||||
if((','+str+',').indexOf(','+HOST+',')<0)str+='<font style="font-size:12px" color="red">(与当前'+HOST+'域名不符合)</font>';
|
||||
var str = jm.uncrypt(da.yuming),yms = str;
|
||||
if(yms=='*.')str+='(无限制域名)';
|
||||
if((','+yms+',').indexOf(','+HOST+',')<0 && yms!='*.')str+='<font style="font-size:12px" color="red">(与当前'+HOST+'域名不符合)</font>';
|
||||
$('#auther_yuming{rand}').html(str);
|
||||
$('#savebtn{rand}').hide();
|
||||
$('#savewen{rand}').hide();
|
||||
|
||||
@@ -120,7 +120,7 @@ class wordClassAction extends Action
|
||||
|
||||
public function delwordAjax()
|
||||
{
|
||||
$fid = $this->post('id','0');
|
||||
$fid = (int)$this->post('id','0');
|
||||
m('word')->delete("`fileid`='$fid'");
|
||||
m('file')->delfile($fid);
|
||||
backmsg();
|
||||
@@ -129,8 +129,8 @@ class wordClassAction extends Action
|
||||
//移动
|
||||
public function movefileAjax()
|
||||
{
|
||||
$fid = $this->post('fid','0');
|
||||
$tid = $this->post('tid','0');
|
||||
$fid = c('check')->onlynumber($this->post('fid','0'));
|
||||
$tid = (int)$this->post('tid','0');
|
||||
m('word')->update("`typeid`='$tid'","`fileid` in ($fid)");
|
||||
}
|
||||
}
|
||||
@@ -9,6 +9,7 @@ $(document).ready(function(){
|
||||
get('wxgzhappid_{rand}').value=a.appid;
|
||||
get('wxgzhsecret_{rand}').value=a.secret;
|
||||
get('wxgzhtplmess_{rand}').value=a.tplmess;
|
||||
get('wxgzhcenterurl_{rand}').value=a.centerurl;
|
||||
|
||||
});
|
||||
},
|
||||
@@ -17,6 +18,7 @@ $(document).ready(function(){
|
||||
d.appid = get('wxgzhappid_{rand}').value;
|
||||
d.secret = get('wxgzhsecret_{rand}').value;
|
||||
d.tplmess = get('wxgzhtplmess_{rand}').value;
|
||||
d.centerurl = get('wxgzhcenterurl_{rand}').value;
|
||||
js.msg('wait','保存中...');
|
||||
js.ajax(js.getajaxurl('setsave','{mode}','{dir}'), d, function(s){
|
||||
js.msg('success','保存成功');
|
||||
@@ -60,6 +62,14 @@ $(document).ready(function(){
|
||||
<font color="#888888">可以使用公众号的订阅号/服务号都可以,到公众号后台【开发→基本配置】下获取,<a href="<?=URLY?>view_wxgzh.html" target="_blank">[帮助]</a></font>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="right" width="180">网页授权地址:</td>
|
||||
<td class="tdinput">
|
||||
<input id="wxgzhcenterurl_{rand}" placeholder="这个预留用不用去设置" class="form-control">
|
||||
<font color="#888888">这个是为了授权中转用的,http开头地址必须可用打开。</font>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="right">使用模版消息:</td>
|
||||
|
||||
@@ -9,6 +9,7 @@ class wxgzhClassAction extends Action
|
||||
$this->option->setval('wxgzh_appid@'.$pid.'', $this->post('appid'));
|
||||
$this->option->setval('wxgzh_secret@'.$pid.'', $this->post('secret'));
|
||||
$this->option->setval('wxgzh_tplmess@'.$pid.'', $this->post('tplmess'));
|
||||
$this->option->setval('wxgzh_centerurl@'.$pid.'', $this->post('centerurl'));
|
||||
$this->backmsg();
|
||||
}
|
||||
|
||||
@@ -18,6 +19,7 @@ class wxgzhClassAction extends Action
|
||||
$arr['appid'] = $this->option->getval('wxgzh_appid');
|
||||
$arr['secret'] = $this->option->getval('wxgzh_secret');
|
||||
$arr['tplmess'] = $this->option->getval('wxgzh_tplmess');
|
||||
$arr['centerurl'] = $this->option->getval('wxgzh_centerurl');
|
||||
echo json_encode($arr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user