Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ecitlm committed Aug 18, 2017
1 parent 9bee72b commit 1c83455
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 43 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -6,4 +6,5 @@ slog.php
splider_img
.gitignore
apps/wx/
apps/wx
apps/wx
runtime/*
5 changes: 1 addition & 4 deletions apps/api/controller/Splider.php
Expand Up @@ -45,6 +45,7 @@ public function splider()

public function osc(){
$page = (isset($_GET['page'])) ? intval($_GET ['page']) : 1;
// $id = (isset($_GET['id'])) ? intval($_GET ['id']) : 1;
$url="https://my.oschina.net/u/2921900/home?type=tweet&scope=all&showme=NOTSHOW&p={$page}&temp=1500024889206";
$res = HttpGet($url);
\phpQuery::newDocumentHTML($res);
Expand All @@ -53,8 +54,6 @@ public function osc(){

foreach ($list as $li) {
$img = pq($li)->attr('data-raw-img');


$tmp = array(
'img' => $img
);
Expand All @@ -66,8 +65,6 @@ public function osc(){
'data' => $arr
]);


//tweet-img
}


Expand Down
15 changes: 13 additions & 2 deletions apps/api/controller/Web.php
Expand Up @@ -73,7 +73,7 @@ public function every_daily_list()
$arr = array();
$list = pq('.feddaily-list li');

$every_daily_title=pq('.entry-title a')->text();
$every_daily_title = pq('.entry-title a')->text();
foreach ($list as $li) {
$title = pq($li)->find('.fed-title a')->text();
$desc = pq($li)->find('.fed-con')->text();
Expand All @@ -90,8 +90,19 @@ public function every_daily_list()
return json([
'msg' => 'success',
'code' => 1,
'title'=>$every_daily_title,
'title' => $every_daily_title,
'data' => $arr
]);
}


public function frame()
{
$url = "http://orz7qm1c9.bkt.clouddn.com/frame.html";
$data = Http_Spider($url);
return $data;

}


}
20 changes: 0 additions & 20 deletions tests/ExampleTest.php

This file was deleted.

16 changes: 0 additions & 16 deletions tests/TestCase.php

This file was deleted.

0 comments on commit 1c83455

Please sign in to comment.