x213212
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# 嘴巴寫程式 參與規劃的時候遇到兩個功能,來小複習一下 以Vue.js 和 spring boot實作後,後續可以根據下列功能進行優化 規劃完我們的認證中心 接下來就是已經完成的 # 綠界科技物流串接 https://www.ecpay.com.tw/Content/files/ecpay_030.pdf ![](https://i.imgur.com/MIv9emR.png) 可以看到流程圖 合作特店就是我們自己架的網站 再來就是我們的綠界科技 去幫我們做一個銜接的動作 主要去跟我們的物流中心 可能是 萊爾富 或者是 統一 然後我們來細看裡面 主要流程就是 我們要去下訂單,下完訂單,就讓我們的綠界科技去跟我們的 物流中心去做溝通, 然後我們在去根據 綠界中心 返回的訂單編號,再去根據我們的 訂單編號 拿去 ibon 列印? 有這些我們就可以直接把 使用者 購買的資訊 和要配送的 店家 地點 給列印出來所以我們不用在那邊慢慢點,最後我們在 萊爾富或者 711 把東西寄出去,接下來我們就可以去做一個 跟 綠界科技 去查詢貨物的狀態 等等 我這邊只演示 * 地圖串接 * 物流下訂單 * 查詢貨物 待續 ... # 串接 api警告 :::danger 注意事項: 接收傳送綠界科技 API 通知時,請特店系統開發人員確認下面事項,以利正常收到綠界科技發送的各項通知: 1. 請確認通知回傳網址[ServerReplyURL]是否接受回傳資訊,且已開通防火牆對外連線。 1. 呼叫綠界科技 API 連接 port 只提供 https (443 port)連線方式,並請使用合法的 DNS(Domain Name System)進行介接。 1. 請確認各項交易參數傳送時是使用 Http POST 方式傳送至綠界科技 API。 1. 請確認特店系統的 Server URL 連接 port 為 http 80 port 與 https 443 port。 1. 傳送參數值的內容不允許使用 html tag 標示,例如```<br /> <B> <h1>```…等。 1. 請勿將金鑰資訊存放或顯示於前端網頁內,如 Javascript、html、Css…等,避免金鑰被盜取使用造成損失及交易 1. 資料外洩。 1. 串接API時有傳平台商編號 PlatformID參數時,產生檢查碼及資料加密的金鑰,請使用平台商的 HashKey及HashIV 回傳網址不支援中文網址,網址參數請使用 punycode 編碼後的網址,例如中文.tw 改成 xn--fiq228c.tw 1. 為保障消費者權益與網路交易安全,綠界串接服務只支援 TLS 1.2 以上之加密通訊協定。 ::: # 地團 api 串接 可以知道我們通常要寄東西的話就是要選擇地圖,那麼我們的賣家可以去選擇我們的地圖再去匹配我們店家 的 id 這樣就可以不用輸入地址輸入id就直接知道你在哪裡,當然詳細的過程我就不再敘述 物流的 地圖 api 主要就是返回 裡面有一個 # ServerReplyURL 也就是說這是 綠界科技要回來戳我們系統的 api 所以呢 ,小偷懶可以用 ngork 去直接做一個代理,這樣起到一個網關的作用也就是說,由綠界科技直接 post 到我們的 ngork 可以攔截一些參數, # request ![](https://i.imgur.com/y6RGuDw.png) # response ![](https://i.imgur.com/dzIFugC.png) # 物流下訂單 這些就很簡單,傳送商品名稱與價格等等就可以了,你可以自定義單號 MerchantTradeNo 等等, ![](https://i.imgur.com/CjTh9oq.png) # response 正確: 1|MerchantID=XXX&MerchantTradeNo=XXX&RtnCode=XXX&BookingNote=&RtnMsg=XXX&AllPayLogisticsID=XXX&Logisti csType=XXX&LogisticsSubType=XXX&GoodsAmount=XXX&UpdateStatusDate=XXX&ReceiverName=XXX&ReceiverPhone= XXX&ReceiverCellPhone=XXX&ReceiverEmail=XXX&ReceiverAddress=XXX&CVSPaymentNo=XXX &CVSValidationNo=XXX &CheckMacValue=XXX 錯誤: 0| ErrorMessage # 檢查碼 ![](https://i.imgur.com/0gasUZO.png) 可以預防資料在傳遞過程中被竄改等等 舉了上述例子就是說前端要 post 資料到我們的 spring boot 然後呢在進行我們的去跟 綠界科技去做請求還要去做檢查碼認證,大概就是這樣。

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully