收藏
CtrlCtrl+D收藏本站
抓试网 抓试网

好货精选 实时更新 独享优惠券

今日已为用户省钱66,349,028
系统发生错误

[8] ErrorException in Goodszs.php line 299

未定义数组下标: 0

  1. }
  2. function sethtmla($e)
  3. {
  4. $html = '<a target="_blank" class="goods_list" href="http://quan.zhuashi.com/index.php?r=l/d&amp;u=678341&amp;id='.$e['id'].'" id="cms-goods-items_'.$e['id'].'_99"><div class="img"><img src="'.$e['pic'].'" alt="'.$e['d_title'].'"></div><div class="content"><p class="co_tit"><span data-gid="24635072"><i class="tag tag-tmall fl" title="天猫"></i>'.$e['d_title'].'</span></p><div class="sale_num"><span class="fl">原价 <i>'.$e['yuanjia'].'</i> </span><span class="fr">销量 <i>'.$e['xiaoliang'].'</i></span></div><div class="price cf"><div class="tip"></div><i class="p">¥</i><span>'.$e['jiage'].'</span> <b class="fr"><i>'.$e['quan_jine'].'</i>元券</b></div></div></a>';
  5. return $html;
  6. }
  7. public function index()
  8. {
  9. $arr = json_decode($this->geturl("https://tp.2aaf.com/index.php/collect/Goodszs/indexa"));
  10. $r = json_decode($arr[0],1);
  11. /*<a target="_blank" class="goods_list" href="/index.php?r=l/d&amp;u=678341&amp;id=24635072" id="cms-goods-items_24635072_99"><div class="img"><img src="https://img.alicdn.com/imgextra/i1/2386728080/O1CN01TWmyo429YgjiWnf5t_!!2386728080.jpg_310x310.jpg" alt="【修正D牌】正宗老北京养生足贴睡眠脚贴"></div><div class="content"><p class="co_tit"><span data-gid="24635072"><i class="tag tag-tmall fl" title="天猫"></i>【修正D牌】正宗老北京养生足贴睡眠脚贴</span></p><div class="sale_num"><span class="fl">原价 <i>28.8</i> </span><span class="fr">销量 <i>1944</i></span></div><div class="price cf"><div class="tip"></div><i class="p">¥</i><span>13.8</span> <b class="fr"><i>15</i>元券</b></div></div></a>*/
  12. $html = '<div class="list_cent" id="homeGoodsItem">';
  13. foreach ($r as $key=>$val){
  14. if($key<10){
  15. $html = $html.$this->sethtmla($val);
  16. }
  17. }
  18. $html = $html.'</div>';

Call Stack

  1. in Goodszs.php line 299
  2. at Error->appError(8, 'Undefined offset: 0', '/www/wwwroot/tp.2aaf...', 299, ['arr' => []]) in Goodszs.php line 299
  3. at Goodszs->index()
  4. at ReflectionMethod->invokeArgs(object(Goodszs), []) in Container.php line 381
  5. at Container->invokeReflectMethod(object(Goodszs), object(ReflectionMethod), []) in Controller.php line 98
  6. at Controller->think\route\dispatch\{closure}(object(Request), object(Closure))
  7. at call_user_func_array(object(Closure), [object(Request), object(Closure)]) in Container.php line 330
  8. at Container->invokeFunction(object(Closure), [object(Request), object(Closure), null]) in Container.php line 394
  9. at Container->invoke(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 203
  10. at Middleware->think\{closure}(object(Request))
  11. at call_user_func(object(Closure), object(Request)) in Middleware.php line 151
  12. at Middleware->dispatch(object(Request), 'controller') in Controller.php line 103
  13. at Controller->exec() in Dispatch.php line 103
  14. at Dispatch->run() in Route.php line 751
  15. at Route->think\{closure}()
  16. at call_user_func_array(object(Closure), []) in Container.php line 330
  17. at Container->invokeFunction(object(Closure), [object(Request), object(Closure), null]) in Container.php line 394
  18. at Container->invoke(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 203
  19. at Middleware->think\{closure}(object(Request)) in TraceDebug.php line 52
  20. at TraceDebug->handle(object(Request), object(Closure))
  21. at ReflectionMethod->invokeArgs(object(TraceDebug), [object(Request), object(Closure)]) in Container.php line 356
  22. at Container->invokeMethod([object(TraceDebug), 'handle'], [object(Request), object(Closure), null]) in Container.php line 397
  23. at Container->invoke([object(TraceDebug), 'handle'], [object(Request), object(Closure), null]) in Middleware.php line 203
  24. at Middleware->think\{closure}(object(Request))
  25. at call_user_func(object(Closure), object(Request)) in Middleware.php line 151
  26. at Middleware->dispatch(object(Request)) in Route.php line 758
  27. at Route->dispatch(object(Request), object(Closure)) in Http.php line 193
  28. at Http->runWithRequest(object(Request)) in Http.php line 145
  29. at Http->run() in index.php line 20

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_ACCEPT */*
HTTP_HOST tp.2aaf.com
PATH_INFO /collect/Goodszs/index
REDIRECT_STATUS 200
SERVER_NAME tp.2aaf.com
SERVER_PORT 443
SERVER_ADDR 103.39.215.6
REMOTE_PORT 34458
REMOTE_ADDR 110.42.1.94
SERVER_SOFTWARE nginx/1.15.10
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/tp.2aaf.com/public
DOCUMENT_URI /index.php/collect/Goodszs/index
REQUEST_URI /index.php/collect/Goodszs/index
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /www/wwwroot/tp.2aaf.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php/collect/Goodszs/index
REQUEST_TIME_FLOAT 1582107207.4111
REQUEST_TIME 1582107207
Environment Variablesempty
ThinkPHP Constants
ROOT_DIR /www/wwwroot/tp.2aaf.com/
最新试用 商家最新发布的试用推荐
最近更新 最近发布 价格排行 剩余份数 免审试用
全网试用 抓取全网,免费试用
苏宁 拼多多 阿里 京东 天猫 淘宝
查看更多
{if }