[2] ErrorException in Shops.php line 282

array_merge(): Argument #2 is not an array

  1. $shopAds[$i]["adUrl"] = $shopAdsUrl[$i];
  2. $shopAds[$i]['isOpen'] = false;
  3. if(stripos($shopAdsUrl[$i],'http:')!== false || stripos($shopAdsUrl[$i],'https:')!== false){
  4. $shopAds[$i]['isOpen'] = true;
  5. }
  6. }
  7. $rs['shopAds'] = $shopAds;
  8. unset($config['shopAds']);
  9. }
  10. $rs = array_merge($rs,$config);
  11. //热搜关键词
  12. $rs['shopHotWords'] = ($rs['shopHotWords']!='')?explode(',',$rs['shopHotWords']):[];
  13. //关注
  14. $f = model('common/ShopMembers');
  15. $rs['isfollow'] = $f->checkFavorite($shopId,$uId);
  16. $followNum = $f->followNum($shopId);
  17. $rs['followNum'] = $followNum;
  18. return $rs;
  19. }

Call Stack

  1. in Shops.php line 282
  2. at Error::appError(2, 'array_merge(): Argum...', '/home/wwwroot/wstmar...', 282, ['shopId' => 18, 'uId' => 0, 'rs' => ['shopNotice' => null, 'shopId' => 18, 'shopImg' => '', ...], ...])
  3. at array_merge(['shopNotice' => null, 'shopId' => 18, 'shopImg' => '', ...], null) in Shops.php line 282
  4. at Shops->getShopInfo(18) in Shops.php line 65
  5. at Shops->index()
  6. at ReflectionMethod->invokeArgs(object(Shops), []) in Container.php line 395
  7. at Container->invokeReflectMethod(object(Shops), object(ReflectionMethod), ['shopId' => '18', 'convert' => false]) in Module.php line 132
  8. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  9. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  10. at Middleware->think\{closure}(object(Request))
  11. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  12. at Middleware->dispatch(object(Request), 'controller') in Module.php line 137
  13. at Module->exec() in Dispatch.php line 168
  14. at Dispatch->run() in App.php line 432
  15. at App->think\{closure}(object(Request), object(Closure), null)
  16. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  17. at Middleware->think\{closure}(object(Request))
  18. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  19. at Middleware->dispatch(object(Request)) in App.php line 435
  20. at App->run() in index.php line 25