/**
  * 编辑页面
  * @param $id
  * @return \Illuminate\View\View
  * @throws DeepInHtmlException
  */
 public function edit($id)
 {
     try {
         $rank = $this->find($id);
     } catch (DeepInException $e) {
         throw new DeepInHtmlException($e->getMessage());
     }
     $rankCategory = ShopRankCategory::all();
     //榜单分类
     $apps = ShopApps::all();
     //应用列表
     return view("admin.rank.edit", array("rank_category" => $rankCategory, "apps" => $apps, "rank" => $rank));
 }
 /**
  * 应用图片
  * @param DeepInUpload $upload
  */
 protected function app(DeepInUpload $upload)
 {
     $appList = ShopApps::all();
     foreach ($appList as $item) {
         if ($item instanceof ShopApps) {
             $imgView = $item->imgView();
             if (empty($imgView)) {
                 continue;
             }
             $response = $upload->getUpYunUrl($imgView);
             $responseValue = $response->getResponseValue();
             if ($responseValue instanceof UpYunResponseValue) {
                 $this->addToMap($imgView, $responseValue->getLocation());
             }
         }
     }
 }