Skip to content

Commit c248c33

Browse files
committed
update 260125
1 parent 043abc7 commit c248c33

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

app/dev/index.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,18 @@
1717
* 获取版本号并载入应用部分设置
1818
*/
1919
$ver=substr(file_get_contents(UTF_ROOT."/UTVer.ini"),-6);
20-
$app->Runin(array("ver","update","develop","lock"),array($ver,$config["UPDATEURL"],$config["DEVELOP"],$config["LOCKSCREEN"]));
20+
$app->Runin(
21+
array("ver","update","develop","lock"),
22+
array($ver,$config["UPDATEURL"],$config["DEVELOP"],$config["LOCKSCREEN"])
23+
);
2124
/**
2225
* 接收官方消息
2326
*/
2427
$webmsg=UTF_ROOT."/log/usualtool.log";
2528
$msgdata=file_exists($webmsg) ? json_decode(file_get_contents($webmsg),true) : null;
2629
if(!$msgdata || time()-strtotime($msgdata["time"])>86400):
2730
$msg=UTInc::Auth($config["UTCODE"],$config["UTFURL"],"message");
28-
file_put_contents($webmsg, json_encode(["time"=>date("Y-m-d"),"message"=>$msg],JSON_UNESCAPED_UNICODE));
31+
file_put_contents($webmsg,json_encode(["time"=>date("Y-m-d"),"message"=>$msg],JSON_UNESCAPED_UNICODE));
2932
else:
3033
$app->Runin("message", explode("|", $msgdata["message"]));
3134
endif;
@@ -43,7 +46,10 @@
4346
* befoitem前端地址集,backtem后端栏目集
4447
*/
4548
$thismod=UTData::QueryData("cms_module","","mid='$m'","","")["querydata"][0];
46-
$app->Runin(array("title","befoitem","backitem"),array($thismod["modname"],$thismod["befoitem"],$thismod["backitem"]));
49+
$app->Runin(
50+
array("title","befoitem","backitem"),
51+
array($thismod["modname"],$thismod["befoitem"],$thismod["backitem"])
52+
);
4753
/**
4854
* 写入后端公共模板路径
4955
* 公共使用的模板可以放在公共模块ut-frame/skin/下

app/modules/ut-api/usualtool.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<description>适用于远程获取数据的Api接口,支持APP、网页等应用。</description>
1010
<itemid>3</itemid>
1111
<ordernum>2</ordernum>
12+
<composer>usualtool/ut-wechat,usualtool/ut-aliopen</composer>
1213
<modurl>index.php</modurl>
1314
<befoitem>NULL</befoitem>
1415
<backitem>接口配置:index.php,在线调试:test.php</backitem>

app/modules/ut-oauth/usualtool.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<description>使用OAuth 2.0可进行第三方应用的认证和授权。</description>
1010
<itemid>3</itemid>
1111
<ordernum>97</ordernum>
12+
<composer>usualtool/ut-oauth</composer>
1213
<modurl>index.php</modurl>
1314
<befoitem>NULL</befoitem>
1415
<backitem>管理应用:index.php,授权记录:log.php,权限集合:role.php,用户列表:user.php</backitem>

0 commit comments

Comments
 (0)