本源码分为两部分,一部分为Android客户端工程,名为pic,实现了用户本地选择照片,照相,并上传图片到服务器端,并且实现了名为朋友圈的listview,上传好的图片可以在这里看到。另一文件为服务器端的java工程,放到MyEclipse下面,用Tomcat运行即可与客户端进行交互(改相应的URL就好),服务器环境是Linux,用户上传好的图片会被压缩,方便在列表中显示在客户端。备注:客户端用的IDE是Android Studio
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.015285s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.758963s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.084105s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001152s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.013504s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003099s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.003034s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.012900s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.133205s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.024617s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 83395 [ RunTime:0.045988s ]