01.log
8.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
---------------------------------------------------------------
[ 2019-04-01T11:01:35+08:00 ] 127.0.0.1 GET www.gc.cn/api/porders/settle?p_id=4,5,6&p_num=5,8,9
[运行时间:1.111584s] [吞吐率:0.90req/s] [内存消耗:4,731.90kb] [文件加载:76]
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.004456s ]
[ info ] [ CACHE ] INIT File
[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @app_init [ RunTime:0.013614s ]
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.013655s ]
[ info ] [ LANG ] F:\wamp64\www\project\gc\thinkphp\lang\zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'porders',
2 => 'settle',
),
)
[ info ] [ HEADER ] array (
'token' => '08c4786c-6e7a-415d-a8a6-74386fe55e87',
'cache-control' => 'no-cache',
'postman-token' => '0e9ee175-68cc-4228-acf8-42a6940f17b6',
'user-agent' => 'PostmanRuntime/7.6.1',
'accept' => '*/*',
'host' => 'www.gc.cn',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------963071723246527335270001',
'content-length' => '160',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'p_id' => '4,5,6',
'p_num' => '5,8,9',
)
[ info ] [ LANG ] F:\wamp64\www\project\gc\public/../application/api\lang\zh-cn.php
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.008906s ]
[ info ] [ TOKEN ] INIT Mysql
[ info ] [ DB ] INIT mysql
[ info ] [ RUN ] app\api\controller\Porders->settle[ F:\wamp64\www\project\gc\application\api\controller\Porders.php ]
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.850175s ] mysql:host=39.107.114.243;dbname=gc;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `gc_user_token` [ RunTime:0.017792s ]
[ sql ] [ SQL ] SELECT * FROM `gc_user_token` WHERE `token` = '3a58f47ca43c423578ee79dcae0d927d141e9cae' LIMIT 1 [ RunTime:0.014213s ]
[ sql ] [ SQL ] SELECT * FROM `gc_user_token` WHERE `token` = '3a58f47ca43c423578ee79dcae0d927d141e9cae' LIMIT 1 [ RunTime:0.015858s ]
[ sql ] [ SQL ] SHOW COLUMNS FROM `gc_user` [ RunTime:0.016772s ]
[ sql ] [ SQL ] SELECT * FROM `gc_user` WHERE `id` = 26 LIMIT 1 [ RunTime:0.015850s ]
[ sql ] [ SQL ] SHOW COLUMNS FROM `gc_product` [ RunTime:0.016312s ]
[ sql ] [ SQL ] SELECT `p`.`id`,`p`.`title`,`p`.`price`,`p`.`images`,`u`.`username`,`u`.`mobile`,`u`.`address` FROM `gc_product` `p` LEFT JOIN `gc_user` `u` ON `p`.`uid`=`u`.`id` WHERE `p`.`status` = 0 AND `u`.`status` = 'normal' AND `p`.`id` IN ('4','5','6') [ RunTime:0.015391s ]
[ sql ] [ SQL ] SELECT `username`,`mobile` FROM `gc_user` WHERE `id` = 26 AND `status` = 'normal' LIMIT 1 [ RunTime:0.019457s ]
---------------------------------------------------------------
[ 2019-04-01T11:03:10+08:00 ] 127.0.0.1 POST www.gc.cn/api/porders/purchase
[运行时间:0.305981s] [吞吐率:3.27req/s] [内存消耗:4,792.52kb] [文件加载:77]
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000043s ]
[ info ] [ CACHE ] INIT File
[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @app_init [ RunTime:0.003248s ]
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.003326s ]
[ info ] [ LANG ] F:\wamp64\www\project\gc\thinkphp\lang\zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'porders',
2 => 'purchase',
),
)
[ info ] [ HEADER ] array (
'token' => '08c4786c-6e7a-415d-a8a6-74386fe55e87',
'cache-control' => 'no-cache',
'postman-token' => '48cbd12a-e0ff-44c0-90cd-7d485ae3aaf1',
'user-agent' => 'PostmanRuntime/7.6.1',
'accept' => '*/*',
'host' => 'www.gc.cn',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------372909554692248170357631',
'content-length' => '566',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'p_id' => '4,5,6',
'p_num' => '2,4,5',
'order_sn' => 'gc_155408769512980100,gc_155408769512982500,gc_155408769512984000',
'address' => '微信地址123',
)
[ info ] [ LANG ] F:\wamp64\www\project\gc\public/../application/api\lang\zh-cn.php
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.004081s ]
[ info ] [ TOKEN ] INIT Mysql
[ info ] [ DB ] INIT mysql
[ info ] [ RUN ] app\api\controller\Porders->purchase[ F:\wamp64\www\project\gc\application\api\controller\Porders.php ]
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.024804s ] mysql:host=39.107.114.243;dbname=gc;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `gc_user_token` [ RunTime:0.016477s ]
[ sql ] [ SQL ] SELECT * FROM `gc_user_token` WHERE `token` = '3a58f47ca43c423578ee79dcae0d927d141e9cae' LIMIT 1 [ RunTime:0.015714s ]
[ sql ] [ SQL ] SELECT * FROM `gc_user_token` WHERE `token` = '3a58f47ca43c423578ee79dcae0d927d141e9cae' LIMIT 1 [ RunTime:0.015566s ]
[ sql ] [ SQL ] SHOW COLUMNS FROM `gc_user` [ RunTime:0.017375s ]
[ sql ] [ SQL ] SELECT * FROM `gc_user` WHERE `id` = 26 LIMIT 1 [ RunTime:0.013783s ]
[ sql ] [ SQL ] SHOW COLUMNS FROM `gc_product` [ RunTime:0.015926s ]
[ sql ] [ SQL ] SELECT `uid`,`price` FROM `gc_product` WHERE `status` = 0 AND `id` IN (4,5,6) [ RunTime:0.016204s ]
[ sql ] [ SQL ] SHOW COLUMNS FROM `gc_porder` [ RunTime:0.015442s ]
[ sql ] [ SQL ] INSERT INTO `gc_porder` (`order_sn` , `pay_order_sn` , `uid` , `s_uid` , `p_id` , `address` , `unit_price` , `num` , `total_price` , `createtime` , `updatetime`) VALUES ('gc_155408769512980100' , '155408779032260800729' , 26 , 1 , 4 , '微信地址123' , 0 , 2 , 0 , 1554087790 , 1554087790) [ RunTime:0.015757s ]
[ sql ] [ SQL ] INSERT INTO `gc_porder` (`order_sn` , `pay_order_sn` , `uid` , `s_uid` , `p_id` , `address` , `unit_price` , `num` , `total_price` , `createtime` , `updatetime`) VALUES ('gc_155408769512982500' , '155408779032260800729' , 26 , 22 , 5 , '微信地址123' , 500 , 4 , 2000 , 1554087790 , 1554087790) [ RunTime:0.016592s ]
[ sql ] [ SQL ] INSERT INTO `gc_porder` (`order_sn` , `pay_order_sn` , `uid` , `s_uid` , `p_id` , `address` , `unit_price` , `num` , `total_price` , `createtime` , `updatetime`) VALUES ('gc_155408769512984000' , '155408779032260800729' , 26 , 1 , 6 , '微信地址123' , 497 , 5 , 2485 , 1554087790 , 1554087790) [ RunTime:0.015987s ]
---------------------------------------------------------------
[ 2019-04-01T14:21:10+08:00 ] 127.0.0.1 GET www.gc.cn/api/gifts/getgiftslist?page=1
[运行时间:0.324719s] [吞吐率:3.08req/s] [内存消耗:4,677.82kb] [文件加载:76]
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000616s ]
[ info ] [ CACHE ] INIT File
[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @app_init [ RunTime:0.005208s ]
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.005300s ]
[ info ] [ LANG ] F:\wamp64\www\project\gc\thinkphp\lang\zh-cn.php
[ info ] [ ROUTE ] array (
'type' => 'module',
'module' =>
array (
0 => 'api',
1 => 'gifts',
2 => 'getgiftslist',
),
)
[ info ] [ HEADER ] array (
'token' => '08c4786c-6e7a-415d-a8a6-74386fe55e87',
'cache-control' => 'no-cache',
'postman-token' => '14615b51-fe2b-4700-8da7-695bdb12192a',
'user-agent' => 'PostmanRuntime/7.6.1',
'accept' => '*/*',
'host' => 'www.gc.cn',
'accept-encoding' => 'gzip, deflate',
'content-type' => 'multipart/form-data; boundary=--------------------------409664996061416426845370',
'content-length' => '160',
'connection' => 'keep-alive',
)
[ info ] [ PARAM ] array (
'page' => '1',
)
[ info ] [ LANG ] F:\wamp64\www\project\gc\public/../application/api\lang\zh-cn.php
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.006895s ]
[ info ] [ TOKEN ] INIT Mysql
[ info ] [ DB ] INIT mysql
[ info ] [ RUN ] app\api\controller\Gifts->getGiftsList[ F:\wamp64\www\project\gc\application\api\controller\Gifts.php ]
[ info ] [ LOG ] INIT File
[ sql ] [ DB ] CONNECT:[ UseTime:0.028240s ] mysql:host=39.107.114.243;dbname=gc;charset=utf8
[ sql ] [ SQL ] SHOW COLUMNS FROM `gc_user_token` [ RunTime:0.019648s ]
[ sql ] [ SQL ] SELECT * FROM `gc_user_token` WHERE `token` = '3a58f47ca43c423578ee79dcae0d927d141e9cae' LIMIT 1 [ RunTime:0.015841s ]
[ sql ] [ SQL ] SELECT * FROM `gc_user_token` WHERE `token` = '3a58f47ca43c423578ee79dcae0d927d141e9cae' LIMIT 1 [ RunTime:0.015289s ]
[ sql ] [ SQL ] SHOW COLUMNS FROM `gc_user` [ RunTime:0.015861s ]
[ sql ] [ SQL ] SELECT * FROM `gc_user` WHERE `id` = 26 LIMIT 1 [ RunTime:0.017047s ]
[ sql ] [ SQL ] SELECT `score` FROM `gc_user` WHERE `id` = 26 AND `status` = 'normal' LIMIT 1 [ RunTime:0.015004s ]
[ sql ] [ SQL ] SHOW COLUMNS FROM `gc_gift` [ RunTime:0.045585s ]
[ sql ] [ SQL ] SELECT `id`,`title`,`score`,`images` FROM `gc_gift` WHERE `status` = 0 LIMIT 0,10 [ RunTime:0.015145s ]