markdown 基本語法

一級(jí)標(biāo)題

二級(jí)標(biāo)題

三級(jí)標(biāo)題

有序列表和無序列表

  1. asd
  2. asdasda
  3. eqwqw
  • 你好
  • 你好么

這是一個(gè)引用 注意符號(hào)與文本見有空格
asdad

圖片與鏈接

圖片:[圖片上傳失敗...(image-8f238d-1512457576944)]
鏈接: 一個(gè)測試圖床鏈接

粗體與斜體

這是粗體

這是斜體

神奇的表格

表格 物品 價(jià)格 產(chǎn)地
測試部門 測試手機(jī) 還有什么呢 asdasdadfa啊實(shí)打?qū)嵈蟀?shí)打?qū)嵉膄a
你好 電腦 100元 西班牙

代碼框

asdhasdjasdhakd
asdkasdlkj a kdalkjd lakdam,sdmnam
,d啊實(shí)打?qū)嵉睦罂臻g啊離開多久啊啦開始大量
看見的阿克蘇來得及

分割線 三個(gè)星號(hào),


圖片內(nèi)鏈(多圖一次設(shè)置)

I get 10 times more traffic from Google than from Yahoo or MSN.

到此 就是基本的語法。

密信通-登錄

模塊:[clientService];
修改:[夏董暉];時(shí)間:[2017-3-14];版本:[1.0]

------------------------------------------------------------
版本說明:版本:[1.0]初始版本-作者:夏董暉 創(chuàng)建時(shí)間:2017-03-14

獲取salt值

  • 請求
HTTPS GET https://<serviceServers>/users/3/{uid}/salt/{build_version}
  • 請求參數(shù)說明
含義 值類型 是否必傳
uid 賬戶Id String Y
build_version 用戶版本號(hào) String Y
  • 應(yīng)答

返回成功狀態(tài)

{"status":"ok", "salt":"salt"}

返回失敗狀態(tài)

{"status":"failed","reason":"server_error"}
  • 返回參數(shù)說明
含義 值類型
status 返回狀態(tài)("ok"為成功,"failed"為失敗) String
salt salt值 String
reason 失敗原因 String

登錄

  • 請求
HTTPS POST https://<serviceServers>/users/3/new/login
  • 請求參數(shù)

    {"uid":"111",
    "password":"bcbe3365e6ac95ea2c0343a2395834dd",
    "mechanism":"md5",
    "client_info":{"client_version" : "2.4.4",
                   "build_version" : "560",
                   "os_version" : "4.4.2",
                   "os_type" : "android",
                   "model" : "Galaxy S2",
                   "user_agent" : "Alices' Galaxy S2",
                   "apns_id":"<7a26da66 6c00ac34 d1d5296d f641e2a3 c176fc48 cf471d81 f6a9bacf 38297655>",
                   "pushkit_id":"<be57cd2d 51e80d5b d927af23 13cc6f26 c0446c07 d92e5a6c 13c08577 25f787e0>" ,
                   "push_type": "huawei|xiaomi|jiguang|other"
           }
    }
    
  • 請求參數(shù)說明

含義 值類型 是否必傳 參數(shù)示例
uid 用戶id String Y "flk1004"
password 加密后的密碼 String Y "xxx"
mechanism 加密方式 String Y "md5"
client_info 用戶信息 Y -
prod_type 版本類型(開發(fā)版/正式版) String Y "DEV"/"PROD"
  • client_info參數(shù)說明
含義 值類型 是否必傳
client_version 用戶版本號(hào) String Y
build_version 用戶build號(hào) String Y
os_version 用戶操作系統(tǒng)版本號(hào) String Y
os_type android/ios String Y
model 手機(jī)類型 String Y
user_agent user_agent String Y
apns_id 推送id String Y
pushkit_id pushkit_id(ios需要傳) String N
push_type 推送類型(安卓需要傳) String N
  • 應(yīng)答

返回?cái)?shù)據(jù)

{
 "first_login":true|false
 "status":"ok",
 "token":"xxxxxxxxx",
 "portrait":"3622312",
 "reason":"xxxxxx"
 }
  • 返回參數(shù)說明
含義 值類型
status 返回狀態(tài)("ok"為成功,"failed"為失敗) String
first_login 是否第一次登錄(true/false) boolean
token token String
portrait 頭像id String
update_url 升級(jí)url String
is_update 是否需要升級(jí) String
update_md5 升級(jí)所需md5值 String
reason 失敗原因 String
  • 失敗原因reason描述
含義
wrong_password 密碼錯(cuò)誤
no_bill 付費(fèi)使用期結(jié)束
no_trial 試用期結(jié)束
user_not_exists 用戶不存在
password_modified_by_admin 密碼被管理員修改
server_internal_error 服務(wù)器錯(cuò)誤
  • 是否需要升級(jí)is_update描述
含義
NO 不需要升級(jí),此時(shí)登錄返回status為"ok"
SUGGEST 建議升級(jí),此時(shí)登錄返回status為"ok"
MUST 強(qiáng)制升級(jí),此時(shí)登錄返回為"ok"

socket驗(yàn)證

模塊:[access-layer];端口:[port] 

消息格式簡化為:Socket消息格式

Length Payload
4 JSON

Length表示Payload的長度,Payload為JSON.

  • 訪問負(fù)載均衡地址:
http://<ip>/lb?uid=<uid>&platform=ios&version=4.2.0&vendor=Apple&osversion=iOS6.0

ip為對(duì)應(yīng)服務(wù)器的ip地址也可以是域名,uid 可是為企業(yè)內(nèi)的任意uid

  • 請求參數(shù):
{"command" : "auth",  
"id" : "xxoo",
"from" : "111",
"to" : "111",
"version" : "2",   
"token":"xxxxxx"}
  • 請求參數(shù)說明
含義 值類型 是否必傳
command 驗(yàn)證類型 String Y
id 包id String Y
from 用戶id String Y
to 用戶id String Y
version 驗(yàn)證類型版本(目前20170316為2) String Y
token token String Y
  • 返回參數(shù):
{"command" : "auth",  
"id" : "xxoo",  
"from" : "111",  
"to" : "111",  
"version" : "2",
"result" : "ok|internal server error|token_error",
"timestamp" : "2017-03-17T01:51:22Z"}
  • 返回參數(shù)說明
含義 值類型
command 驗(yàn)證類型 String
id 包id String
from uid String
to uid String
version 驗(yàn)證類型版本 String
result 失敗原因 String
timestamp 時(shí)間戳 String
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容