跳轉至內容

使用 anyPiece/WYSIWYG 網頁編輯器/終端使用者/設定 extRouter 管理您的業務

來自華夏公益教科書,開放書籍,開放世界

系統要求

[編輯 | 編輯原始碼]
  • 需要 ASP.NET 4
  • 需要對 Web 應用程式的讀寫許可權,因為我們需要寫入和更新檔案

設定人員的技術知識

[編輯 | 編輯原始碼]
  • 瞭解如何使用 FTP
  • 瞭解如何使用記事本編輯 web.config
  • 瞭解如何使用 IIS

所需的基本資訊

[編輯 | 編輯原始碼]
  • 網站 ID
  • 令牌
  • 密碼
  • API 的 Web URL

設定指南

[編輯 | 編輯原始碼]
  1. [從 anyPiece 網站下載 extRouter
  2. 解壓縮檔案並將其放到您選擇的伺服器上
  3. 根據您在 #所需的基本資訊 中擁有的資料更改 web.config。如果您需要更多幫助,請參考 #Web.config 設定
  4. 在您的網站上輸入 flush 命令。例如;http://www.mywebsite.com/flush

Web.config 設定

[編輯 | 編輯原始碼]

下載後,您的 web.config 應如下所示

<?xml version="1.0"?>

<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->

<configuration>
  <system.web>
    <compilation debug="true" strict="false" explicit="true" targetFramework="4.0" />
  </system.web>
  <appSettings>


    <add key="WebSiteID" value="" />
    <add key="Token" value="" />
    <add key="Public_Key" value=""/>
    <add key="webservice_url" value=""/>
    <add key="CacheTimeOut" value="0"/>

  </appSettings>
  
</configuration>
  • 更改 "WebSiteID" 值
  • 更改 "Token" 值
  • 更改 "Public_Key" 值
  • 更改 "webservice_url" 值

故障排除

[編輯 | 編輯原始碼]

為什麼我收到無效的令牌?

[編輯 | 編輯原始碼]

由於設計者可能會阻止或令牌由於更改而發生更改,請聯絡您的設計者或經銷商以獲取新的 API 程式碼。

為什麼我無法寫入?

[編輯 | 編輯原始碼]

請確保您的資料夾對 ASPNET_IIS 的網路服務的讀寫許可權

華夏公益教科書