/**
  * 编辑应用的页面
  * @param $id
  * @return \Illuminate\View\View
  * @throws DeepInHtmlException
  */
 public function edit($id)
 {
     try {
         $app = $this->find($id);
     } catch (\Exception $e) {
         //该地方的异常需要以页面的形式返回,所有要捕捉异常,然后再抛出特定的HTML页面的异常
         throw new DeepInHtmlException($e->getMessage());
     }
     //获取运营宣传语的数据
     $trans = ShopAppsTranslation::whereRaw("appid=:appid", array(":appid" => $id))->get();
     $responseValue = OpenApi::metadataInfo($app->packageId());
     if ($responseValue->getStatusCode() != 0) {
         throw new DeepInHtmlException("拉取数据错误~!" . $responseValue->getStatusMessage());
     }
     $metadata = $responseValue->getData();
     //应用的详细信息
     return view("admin.app.edit", array("app" => $app, "trans" => $trans, "data" => $metadata));
 }