Skip to content

Commit 1aeff3a

Browse files
author
lobtao
committed
fix bug
1 parent 799c8bc commit 1aeff3a

28 files changed

+1068
-30
lines changed

Win32/debug/app/.idea/app.iml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Win32/debug/app/.idea/encodings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Win32/debug/app/.idea/misc.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Win32/debug/app/.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Win32/debug/app/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Win32/debug/app/.idea/webResources.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Win32/debug/app/.idea/workspace.xml

Lines changed: 682 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
2+
<html lang="zh-cn">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>PHP开发桌面应用</title>
6+
7+
<style type="text/css">
8+
9+
* {
10+
padding: 0;
11+
margin: 0;
12+
/*设置文字不能被选中 以下为css样式*/
13+
/*-webkit-user-select: none;
14+
-moz-user-select: none;
15+
-ms-user-select: none;
16+
user-select: none;*/
17+
}
18+
19+
div {
20+
padding: 4px 48px;
21+
}
22+
23+
body {
24+
background: #fff;
25+
font-family: "微软雅黑";
26+
color: #333;
27+
font-size: 24px
28+
}
29+
30+
h1 {
31+
font-size: 100px;
32+
font-weight: normal;
33+
margin-bottom: 12px;
34+
}
35+
36+
p {
37+
line-height: 1.8em;
38+
font-size: 36px
39+
}
40+
41+
a, a:hover {
42+
color: blue;
43+
}</style>
44+
45+
</head>
46+
<body>
47+
48+
<div style="padding: 24px 48px;"><h1>:)</h1>
49+
50+
<p>欢迎使用 <b>ThinkPHP</b>!</p><br/>版本 V<?php echo (THINK_VERSION); ?>
51+
</div>
52+
53+
<div>
54+
QQ交流群:423332770 <br>
55+
作者QQ:137727966
56+
</div>
57+
58+
<div>
59+
<a href="<?php echo U('index/test', array('name'=>'远思软件'));?>" target="_blank">test链接</a>
60+
<a href="<?php echo U('index/session', array('name'=>'远思软件'));?>">session链接</a>
61+
<a href="<?php echo U('index/curl');?>">数据库查询</a>
62+
<br>
63+
<a href="https://v.youku.com/v_show/id_XMzA4OTg3Njc1Mg==.html?spm=a2h0k.11417342.soresults.dtitle" target="_blank">视频1</a>
64+
<a href="http://haokan.baidu.com/v?pd=wisenatural&vid=2553205947188257144" target="_blank">视频2</a>
65+
<a href="http://music.taihe.com/song/601427388" target="_blank">音频1</a>
66+
<a href="http://music.show160.com/252238" target="_blank">音频2</a>
67+
<a href="http://html5test.com" target="_blank">HTML5</a>
68+
<a href="<?php echo U('index/sqlite');?>" target="_blank">sqlite</a>
69+
<a href="<?php echo U('error/index');?>" target="_blank">Error</a>
70+
<br>
71+
<button onclick="show()">打开远思</button>
72+
<button onclick="showmodal()">Modal打开百度</button>
73+
<button onclick="phpinfo()">phpinfo</button>
74+
</div>
75+
76+
<div id="timer">
77+
78+
</div>
79+
80+
81+
<script src="Public/static/jquery-1.12.4.min.js"></script>
82+
<script src="Public/static/service.js"></script>
83+
<script>
84+
var client = client('http://127.0.0.1:46150/index.php?m=home&c=service&a=index');
85+
function myFunction() {
86+
alert(app.myfunc());
87+
}
88+
function show() {
89+
//app.show('http://yssoft.cn', 800, 600);//
90+
window.open("http://yssoft.cn","",'width=800,height=600')
91+
}
92+
function showmodal() {
93+
//app.showmodal('http://baidu.com', 800, 600);//
94+
window.open("http://baidu.com","百度",'width=800,height=600');
95+
}
96+
97+
function phpinfo() {
98+
//app.showmodal( 'http://127.0.0.1:46150/index.php?m=home&c=index&a=phpinfo', 800, 600);//
99+
window.open("http://127.0.0.1:46150/index.php?m=home&c=index&a=phpinfo");
100+
}
101+
//取得系统当前时间
102+
function getTime() {
103+
var myDate = new Date();
104+
var date = myDate.toLocaleDateString();
105+
var hours = myDate.getHours();
106+
var minutes = myDate.getMinutes();
107+
var seconds = myDate.getSeconds();
108+
return date + " " + hours + ":" + minutes + ":" + seconds; //将值赋给div
109+
}
110+
var timer = setInterval(function () {
111+
$('#timer').html(getTime());
112+
//console.log(getTime());
113+
}, 1000);
114+
115+
116+
client.invoke('test_curl', [{
117+
sqlData: {
118+
sql: "select * from employee where EmpNo>:EmpNo",
119+
params: {EmpNo: 140},
120+
type:0
121+
}
122+
}]).then(function (ret) {
123+
console.log(ret)
124+
});
125+
126+
client.invoke('test_curl', [{
127+
sqlData: {
128+
sql: "update employee set FirstName=:FirstName where EmpNo>:EmpNo",
129+
params: {FirstName: "肖滔",EmpNo: 140},
130+
type:1
131+
}
132+
}]).then(function (ret) {
133+
console.log(ret)
134+
});
135+
</script>
136+
</body>
137+
</html>
Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
[ 2018-08-24T16:40:30+08:00 ]
2+
INFO: [ app_init ] --START--
3+
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000015s ]
4+
INFO: [ app_init ] --END-- [ RunTime:0.000888s ]
5+
NOTIC: [8] Undefined index: REQUEST_URI E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Dispatcher.class.php 第 137 行.
6+
INFO: [ app_begin ] --START--
7+
INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001028s ]
8+
INFO: [ app_begin ] --END-- [ RunTime:0.001090s ]
9+
NOTIC: [2048] Declaration of Home\Controller\IndexController::error() should be compatible with that of Think\Controller::error() E:\work\niu_new\Win32\debug\app\Application\Home\Controller\IndexController.class.php 第 65 行.
10+
NOTIC: [2] Missing argument 1 for Think\Controller::show(), called in E:\work\niu_new\Win32\debug\app\Application\Home\Controller\IndexController.class.php on line 11 and defined E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Controller.class.php 第 68 行.
11+
NOTIC: [8] Undefined variable: content E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Controller.class.php 第 69 行.
12+
INFO: [ view_parse ] --START--
13+
INFO: [ template_filter ] --START--
14+
INFO: Run Behavior\ContentReplaceBehavior [ RunTime:0.000060s ]
15+
INFO: [ template_filter ] --END-- [ RunTime:0.000126s ]
16+
INFO: Run Behavior\ParseTemplateBehavior [ RunTime:0.014869s ]
17+
INFO: [ view_parse ] --END-- [ RunTime:0.014930s ]
18+
INFO: [ view_filter ] --START--
19+
INFO: Run Behavior\WriteHtmlCacheBehavior [ RunTime:0.000765s ]
20+
INFO: [ view_filter ] --END-- [ RunTime:0.000818s ]
21+
INFO: [ app_end ] --START--
22+
INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001043s ]
23+
INFO: [ app_end ] --END-- [ RunTime:0.001097s ]
24+
25+
[ 2018-08-24T16:40:30+08:00 ]
26+
INFO: [ app_init ] --START--
27+
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000014s ]
28+
INFO: [ app_init ] --END-- [ RunTime:0.000429s ]
29+
NOTIC: [8] Undefined index: REQUEST_URI E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Dispatcher.class.php 第 137 行.
30+
INFO: [ app_begin ] --START--
31+
INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000619s ]
32+
INFO: [ app_begin ] --END-- [ RunTime:0.000686s ]
33+
INFO: [ app_end ] --START--
34+
INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000686s ]
35+
INFO: [ app_end ] --END-- [ RunTime:0.000778s ]
36+
37+
[ 2018-08-24T16:40:30+08:00 ]
38+
INFO: [ app_init ] --START--
39+
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000017s ]
40+
INFO: [ app_init ] --END-- [ RunTime:0.000492s ]
41+
NOTIC: [8] Undefined index: REQUEST_URI E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Dispatcher.class.php 第 137 行.
42+
INFO: [ app_begin ] --START--
43+
INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000701s ]
44+
INFO: [ app_begin ] --END-- [ RunTime:0.000768s ]
45+
INFO: [ app_end ] --START--
46+
INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.001104s ]
47+
INFO: [ app_end ] --END-- [ RunTime:0.001218s ]
48+
49+
[ 2018-08-24T16:40:32+08:00 ]
50+
INFO: [ app_init ] --START--
51+
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000015s ]
52+
INFO: [ app_init ] --END-- [ RunTime:0.000488s ]
53+
NOTIC: [8] Undefined index: REQUEST_URI E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Dispatcher.class.php 第 137 行.
54+
INFO: [ app_begin ] --START--
55+
INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000594s ]
56+
INFO: [ app_begin ] --END-- [ RunTime:0.000655s ]
57+
NOTIC: [2048] Declaration of Home\Controller\IndexController::error() should be compatible with that of Think\Controller::error() E:\work\niu_new\Win32\debug\app\Application\Home\Controller\IndexController.class.php 第 65 行.
58+
SQL: PRAGMA table_info( tb_student ) [ RunTime:0.0004s ]
59+
NOTIC: [8] Undefined index: field E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 42 行.
60+
NOTIC: [8] Undefined index: field E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 43 行.
61+
NOTIC: [8] Undefined index: null E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 45 行.
62+
NOTIC: [8] Undefined index: default E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 46 行.
63+
NOTIC: [8] Undefined index: dey E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 47 行.
64+
NOTIC: [8] Undefined index: extra E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 48 行.
65+
NOTIC: [8] Undefined index: field E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 42 行.
66+
NOTIC: [8] Undefined index: field E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 43 行.
67+
NOTIC: [8] Undefined index: null E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 45 行.
68+
NOTIC: [8] Undefined index: default E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 46 行.
69+
NOTIC: [8] Undefined index: dey E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 47 行.
70+
NOTIC: [8] Undefined index: extra E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 48 行.
71+
SQL: SELECT * FROM tb_student [ RunTime:0.0001s ]
72+
INFO: [ app_end ] --START--
73+
INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000799s ]
74+
INFO: [ app_end ] --END-- [ RunTime:0.000864s ]
75+
76+
[ 2018-08-24T16:42:57+08:00 ]
77+
INFO: [ app_init ] --START--
78+
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000020s ]
79+
INFO: [ app_init ] --END-- [ RunTime:0.000660s ]
80+
NOTIC: [8] Undefined index: REQUEST_URI E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Dispatcher.class.php 第 137 行.
81+
INFO: [ app_begin ] --START--
82+
INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000728s ]
83+
INFO: [ app_begin ] --END-- [ RunTime:0.000793s ]
84+
NOTIC: [2048] Declaration of Home\Controller\IndexController::error() should be compatible with that of Think\Controller::error() E:\work\niu_new\Win32\debug\app\Application\Home\Controller\IndexController.class.php 第 65 行.
85+
NOTIC: [2] Missing argument 1 for Think\Controller::show(), called in E:\work\niu_new\Win32\debug\app\Application\Home\Controller\IndexController.class.php on line 11 and defined E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Controller.class.php 第 68 行.
86+
NOTIC: [8] Undefined variable: content E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Controller.class.php 第 69 行.
87+
INFO: [ view_parse ] --START--
88+
INFO: [ template_filter ] --START--
89+
INFO: Run Behavior\ContentReplaceBehavior [ RunTime:0.000061s ]
90+
INFO: [ template_filter ] --END-- [ RunTime:0.000127s ]
91+
INFO: Run Behavior\ParseTemplateBehavior [ RunTime:0.013476s ]
92+
INFO: [ view_parse ] --END-- [ RunTime:0.013539s ]
93+
INFO: [ view_filter ] --START--
94+
INFO: Run Behavior\WriteHtmlCacheBehavior [ RunTime:0.000393s ]
95+
INFO: [ view_filter ] --END-- [ RunTime:0.000447s ]
96+
INFO: [ app_end ] --START--
97+
INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000651s ]
98+
INFO: [ app_end ] --END-- [ RunTime:0.000706s ]
99+
100+
[ 2018-08-24T16:42:58+08:00 ]
101+
INFO: [ app_init ] --START--
102+
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000015s ]
103+
INFO: [ app_init ] --END-- [ RunTime:0.000450s ]
104+
NOTIC: [8] Undefined index: REQUEST_URI E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Dispatcher.class.php 第 137 行.
105+
INFO: [ app_begin ] --START--
106+
INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000630s ]
107+
INFO: [ app_begin ] --END-- [ RunTime:0.000695s ]
108+
INFO: [ app_end ] --START--
109+
INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000710s ]
110+
INFO: [ app_end ] --END-- [ RunTime:0.000824s ]
111+
112+
[ 2018-08-24T16:42:58+08:00 ]
113+
INFO: [ app_init ] --START--
114+
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000019s ]
115+
INFO: [ app_init ] --END-- [ RunTime:0.000760s ]
116+
NOTIC: [8] Undefined index: REQUEST_URI E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Dispatcher.class.php 第 137 行.
117+
INFO: [ app_begin ] --START--
118+
INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001041s ]
119+
INFO: [ app_begin ] --END-- [ RunTime:0.001161s ]
120+
INFO: [ app_end ] --START--
121+
INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000754s ]
122+
INFO: [ app_end ] --END-- [ RunTime:0.000835s ]
123+
124+
[ 2018-08-24T16:42:59+08:00 ]
125+
INFO: [ app_init ] --START--
126+
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000016s ]
127+
INFO: [ app_init ] --END-- [ RunTime:0.000459s ]
128+
NOTIC: [8] Undefined index: REQUEST_URI E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Dispatcher.class.php 第 137 行.
129+
INFO: [ app_begin ] --START--
130+
INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000613s ]
131+
INFO: [ app_begin ] --END-- [ RunTime:0.000678s ]
132+
NOTIC: [2048] Declaration of Home\Controller\IndexController::error() should be compatible with that of Think\Controller::error() E:\work\niu_new\Win32\debug\app\Application\Home\Controller\IndexController.class.php 第 65 行.
133+
SQL: PRAGMA table_info( tb_student ) [ RunTime:0.0004s ]
134+
NOTIC: [8] Undefined index: field E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 42 行.
135+
NOTIC: [8] Undefined index: field E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 43 行.
136+
NOTIC: [8] Undefined index: null E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 45 行.
137+
NOTIC: [8] Undefined index: default E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 46 行.
138+
NOTIC: [8] Undefined index: dey E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 47 行.
139+
NOTIC: [8] Undefined index: extra E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 48 行.
140+
NOTIC: [8] Undefined index: field E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 42 行.
141+
NOTIC: [8] Undefined index: field E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 43 行.
142+
NOTIC: [8] Undefined index: null E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 45 行.
143+
NOTIC: [8] Undefined index: default E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 46 行.
144+
NOTIC: [8] Undefined index: dey E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 47 行.
145+
NOTIC: [8] Undefined index: extra E:\work\niu_new\Win32\debug\app\ThinkPHP\Library\Think\Db\Driver\Sqlite.class.php 第 48 行.
146+
SQL: SELECT * FROM tb_student [ RunTime:0.0002s ]
147+
INFO: [ app_end ] --START--
148+
INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000742s ]
149+
INFO: [ app_end ] --END-- [ RunTime:0.000810s ]
150+

Win32/debug/database/test.db

16 KB
Binary file not shown.

Win32/debug/niu_new.exe

-512 Bytes
Binary file not shown.
File renamed without changes.
528 KB
Binary file not shown.

Win32/debug/php.ini renamed to Win32/debug/php_5.3.5/php.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ user_dir =
806806
; http://php.net/extension-dir
807807
; extension_dir = "./"
808808
; On windows:
809-
extension_dir = "./ext"
809+
extension_dir = "./php_5.3.5/ext"
810810

811811
; Whether or not to enable the dl() function. The dl() function does NOT work
812812
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
@@ -967,7 +967,7 @@ extension=php_curl.dll
967967
;extension=php_pdo_oci.dll
968968
;extension=php_pdo_odbc.dll
969969
;extension=php_pdo_pgsql.dll
970-
;extension=php_pdo_sqlite.dll
970+
extension=php_pdo_sqlite.dll
971971
;extension=php_pgsql.dll
972972
;extension=php_pspell.dll
973973
;extension=php_shmop.dll
File renamed without changes.

Win32/debug/server_db.dll

0 Bytes
Binary file not shown.

Win32/debug/server_php.dll

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)