在下面的描述中闡述了很多具體細節以便於充分理解本發明。但是本發明能夠以很多不同於在此描述的其它方式來實施,本領域技術人員可以在不違背本發明內涵的情況下做類似推廣,因此本發明不受下面公開的具體實施的限制。
在本發明一個或多個實施例中使用的術語是僅僅出於描述特定實施例的目的,而非旨在限制本發明一個或多個實施例。在本發明一個或多個實施例和所附申請專利範圍中所使用的單數形式的“一種”、“所述”和“該”也旨在包括多數形式,除非上下文清楚地表示其他含義。還應當理解,本發明一個或多個實施例中使用的術語“和/或”是指並包含一個或多個相關聯的列出專案的任何或所有可能組合。
應當理解,儘管在本發明一個或多個實施例中可能採用術語第一、第二等來描述各種資訊,但這些資訊不應限於這些術語。這些術語僅用來將同一類型的資訊彼此區分開。例如,在不脫離本發明一個或多個實施例範圍的情況下,第一也可以被稱為第二,類似地,第二也可以被稱為第一。取決於語境,如在此所使用的詞語“如果”可以被解釋成為“在……時”或“當……時”或“回應於確定”。
在本發明中,提供了一種資料傳輸方法、裝置、計算設備及儲存媒介,在下面的實施例中逐一進行詳細說明。
參考圖1,圖1為本發明實施例提供的一種資料傳輸系統的結構示意圖,在介紹本發明的技術方案之前,首先對本發明所涉及的資料傳輸系統的架構進行說明。
圖1示出了根據本發明一實施例的資料傳輸系統的架構示意圖。包括伺服端110,網路130和終端120。
所述伺服端110和所述終端120的部件包括但不限於記憶體和處理器。處理器與記憶體通過匯流排相連接,資料庫用於保存資料。
伺服端110和所述終端120還包括接入設備,接入設備使得伺服端110和所述終端120能夠經由一個或多個網路130通信。這些網路的示例包括公用交換電話網(PSTN)、區域網(LAN)、廣域網路(WAN)、個域網(PAN)或諸如網際網路的通信網路的組合。
接入設備可以包括有線或無線的任何類型的網路介面(例如,網路介面卡(NIC))中的一個或多個,諸如IEEE802.11無線區域網(WLAN)無線介面、全球微波互聯接入(Wi-MAX)介面、乙太網介面、通用序列匯流排(USB)介面、蜂巢式網路介面、藍牙介面、近場通信(NFC)介面,等等。
圖2示出了根據本發明一實施例的資料傳輸方法的流程圖,應用於終端,包括步驟202至步驟208。
步驟202:接收主帳戶通過存取設備綁定碼提供的主帳戶資訊,所述主帳戶資訊包括主帳戶的帳戶資訊以及所述主帳戶的登錄設備資訊。
本發明一實施例中,所述設備綁定碼包括二維條碼。
在實際應用中,所述終端可以是閒置的智慧手機,終端接收主帳戶通過存取設備綁定碼提供的主帳戶資訊,其中,所述主帳戶可以是商家的收款帳戶。
所述閒置的智慧手機通過網路載入子帳戶展示模組,所述子帳戶展示模組可以展示設備綁定碼,還具有接收資訊並展示的功能。實際應用中,可以將所述子帳戶展示模組看成是一個極簡版的支付用戶端。所述極簡版的支付用戶端可以支持查看主帳戶的帳單資訊並通過語音播報方式展示收款資訊。
本發明一實施例中,商家在其持有的設備上登錄主帳戶,並通過該設備掃描閒置的智慧手機提供的設備綁定碼,閒置的智慧手機可以獲取商家的主帳戶的帳戶資訊和主帳戶的登錄設備資訊。
步驟204:向所述主帳戶對應的伺服端發送子帳戶的創建請求,所述子帳戶的創建請求中攜帶有所述主帳戶資訊以及子帳戶對應的終端的標識資訊。
本發明一實施例中,所述主帳戶的帳戶資訊包括主帳戶的帳戶名和登錄密碼;所述主帳戶的登錄設備資訊包括主帳戶的登錄設備的設備ID;所述子帳戶的子帳戶對應的終端的標識資訊包括子帳戶對應的終端的ID。
在實際應用中,終端向主帳戶對應的伺服端發送子帳戶的創建請求,該終端即為子帳戶對應的終端。所述子帳戶的創建請求中攜帶有所述主帳戶資訊以及終端標識資訊,其中,所述終端可以包括閒置的智慧手機,主帳戶對應的伺服端可以包括支付應用程式P的伺服端,所述主帳戶的帳戶資訊可以包括商家的在該支付應用程式P中的主帳戶的帳戶名和登錄密碼,所述主帳戶的登錄設備資訊可以包括商家登錄支付應用程式P的設備的設備ID,所述子帳戶的終端標識資訊可以包括閒置的智慧手機的設備ID。
通過所述閒置的智慧手機對該支付應用程式P的伺服端發送創建子帳戶的請求,所述子帳戶的創建請求中包括商家在該支付應用程式P中的主帳戶的帳戶名和登錄密碼,還包括閒置的智慧手機的設備ID。
步驟206:接收所述伺服端發送的子帳戶創建成功回應,所述子帳戶創建成功回應中攜帶有所述主帳戶資訊以及子帳戶對應的終端的標識資訊。
步驟208:接收所述伺服端發送的所述主帳戶的交易資訊並展示。
實際應用中,具體的展示方式的設置可以由商家通過主帳戶的登錄設備進行設置,本發明對此不作限定。
本發明一實施例中,所述終端接收伺服端發送的子帳戶創建成功回應,所述子帳戶創建成功回應中攜帶有所述主帳戶資訊以及子帳戶對應的終端的標識資訊;通過創建伺服端創建成功主帳戶的子帳戶,所述子帳戶可以包括主帳戶的帳戶資訊,並且當所述主帳戶接收收款資訊時,所述子帳戶也可以接收收款資訊,所述主帳戶與所述子帳戶接收收款資訊時,是同步接收的;並且所述主帳戶可以通過網路調用子帳戶登錄設備的元件,例如所述主帳戶的登錄設備可以調用子帳戶登錄設備的音響,利用音響可以對收款金額進行語音播報。
本發明一實施例中,還包括:
接收查看指令,所述查看指令中包括待查看的目標對象;
根據所述查看指令顯示所述目標對象的相關資訊。
本發明一實施例中,所述主帳戶的交易資訊包括主帳戶的收款金額。
本發明一實施例中,所述接收所述伺服端發送的所述主帳戶的交易資訊並展示包括:
接收所述伺服端發送的所述主帳戶的交易資訊並進行語音播報或者螢幕顯示。
在實際應用中,以支付應用程式P收款為例對本發明實施例提供的資料傳輸方法進行說明。
當用戶在商家的店鋪內購物時,通過掃描店鋪提供的收款碼即可付款。當該用戶付款成功時,該商家的支付應用程式P形成交易資訊,分別向商家的主帳戶和子帳戶發送該交易資訊,這樣,所述閒置的智慧手機可以接收到該交易資訊並對所述交易資訊進行語音播報或者通過螢幕顯示出來。店員收聽或者查看收款金額,可以對該筆業務進行核對;當店員需要查看一天的收款金額總數目或者詳細每筆金額時,可以通過所述閒置的智慧手機查看這一天的收款金額情況。
通過本發明實施例提供的資料傳輸方法,終端接收主帳戶通過存取設備綁定碼提供的主帳戶資訊,並發送子帳戶的創建請求至伺服端,接收所述伺服端發送的子帳戶創建成功回應,該終端可以是閒置的智慧設備,實現了變廢為寶。在不需要創建新的收款帳戶的情況下可以通過子帳戶接收主帳戶的收款情況;發生交易時,閒置的智慧設備可以對交易資訊進行語音播報或者畫面展示,即使主帳戶登錄的設備不在店鋪中,也能夠及時對支付情況進行監控,為用戶和店員提供了便利。
圖3示出了根據本發明一實施例的資料傳輸方法的流程圖,應用於伺服端,包括步驟302至步驟306。
步驟302:接收子帳戶的創建請求,所述子帳戶的創建請求中攜帶有主帳戶資訊以及子帳戶對應的終端標識資訊,所述主帳戶資訊包括主帳戶的帳戶資訊以及主帳戶的登錄設備資訊。
在實際應用中,該子帳戶的創建請求可以是一終端發出的,所述終端可以是閒置的智慧手機,例如,一支付應用程式P的伺服端接收商家的主帳戶在利用其閒置的智能手機發起子帳戶的創建請求,所述創建請求中可以包括主帳戶的帳戶名和登錄密碼,還包括登錄主帳戶的設備ID和子帳戶對應的閒置的智慧手機的設備ID。
所述主帳戶可以是商家的收款帳戶。
步驟304:根據所述創建請求為所述主帳戶創建對應的子帳戶,並向所述子帳戶對應的終端和所述主帳戶的登錄設備發送子帳戶創建成功回應,所述子帳戶創建成功回應中攜帶有所述主帳戶資訊以及所述子帳戶對應的終端的標識資訊。
本發明一實施例中,所述主帳戶的帳戶資訊包括主帳戶的帳戶名和登錄密碼;所述主帳戶的登錄設備資訊包括主帳戶的登錄設備的設備ID;所述子帳戶對應的終端的標識資訊包括所述子帳戶對應的終端ID。
本發明一實施例中,發送所述子帳戶創建成功的回應至所述子帳戶對應的終端,所述子帳戶對應的終端與所述主帳戶綁定成功。
步驟306:接收所述主帳戶的交易資訊,並將所述交易資訊發送至所述子帳戶對應的終端。
本發明一實施例中,所述主帳戶的交易資訊包括主帳戶的收款金額。
在實際應用中,以支付應用程式P收款為例對本發明實施例提供的資料傳輸方法進行說明。
當用戶在商家的店鋪購物時,通過掃描店鋪提供的收款碼即可付款。當該用戶付款成功時,該商家的支付應用程式P對應的伺服端形成交易資訊,分別向商家的主帳戶和子帳戶發送該交易資訊,這樣,所述的主帳戶與子帳戶均會收到本次的交易資訊。
通過本發明實施例提供的資料傳輸方法,伺服端通過接收子帳戶的創建請求,所述創建請求中攜帶有主帳戶資訊的帳戶資訊和主帳戶的登錄設備資訊,並根據創建請求為所述主帳戶創建對應的子帳戶,所述子帳戶對應的終端可以是閒置的智慧設備,實現了變廢為寶。在不需要創建新的收款帳戶的情況下可以通過子帳戶接收主帳戶的收款情況,即使主帳戶登錄的設備不在店鋪中,也能夠及時對支付情況進行監控,為用戶和店員提供了便利。
下面結合圖4和圖5對本發明一實施例的資料傳輸方法進行詳細說明。圖4示出了本發明一實施例的資料傳輸方法的交互圖,該方法涉及到主帳戶的登錄設備4A,伺服端4B以及閒置的智慧設備4C。該方法具體過程包括步驟402至418。
步驟402:主帳戶的登錄設備掃描閒置的智慧設備的設備綁定碼。
本發明實施例中,該閒置的智慧設備4C可以是閒置的智慧手機。所述伺服端4B為所述主帳戶對應的伺服端。在實際應用中,以支付應用程式P收銀為例,所述主帳戶可以是商家在支付應用程式P中的收款帳戶,所述主帳戶的登錄設備是所述商家登錄收款帳戶的手機。
所述商家通過登錄收款帳戶手機掃描所述閒置的智慧手機上的設備綁定碼,將所述收款帳戶的帳戶名、登錄密碼和商家的手機設備ID發送至所述閒置的智慧手機。
本發明一實施例中,通過主帳戶的登錄設備掃描閒置的智慧設備提供的設備綁定碼,並將與主帳戶的帳戶資訊與所述主帳戶的登錄設備的設備資訊發送至閒置的智慧設備,為創建主帳戶對應的子帳戶做基礎。
步驟404:閒置的智慧設備發送創建子帳戶請求至伺服端。
參見圖5(a)所示,在實際應用中,智慧設備510為商家的主帳戶的登錄設備,其可以為智慧手機。智慧設備520為閒置的智慧設備,其也可以是智慧手機。實際應用中可以存在多個所述智慧設備520。通過智慧設備510掃描智慧設備520提供的設備綁定碼,創建主帳戶對應的子帳戶。
本發明一實施例中,閒置的智慧設備通過網路發送攜帶有主帳戶的帳戶資訊和主帳戶的設備資訊,還攜帶有閒置的智慧設備的標識資訊至主帳戶對應的伺服端,請求所述主帳戶對應的伺服端為所述主帳戶創建子帳戶。
步驟406:伺服端根據所述創建請求為所述主帳戶創建對應的子帳戶。
步驟408:伺服端發送創建成功回應至主帳戶的登錄設備。
步驟410:伺服端發送創建成功回應至閒置的智慧設備。
本發明一實施例中,通過主帳戶對應的伺服端接收到閒置的智慧設備發送的創建子帳戶請求,所述主帳戶對應的伺服端對創建主帳戶對應的子帳戶進行回應,並通知主帳戶的登錄設備創建主帳戶對應的子帳戶成功。
在實際應用中,所述支付應用程式P對應的伺服端發送創建商家的收款帳戶的子帳戶成功回應至閒置的智慧手機和商家的手機,所述閒置的智慧手機即可通過所述子帳戶與主帳戶建立綁定關係。
步驟412:主帳戶的登錄設備發送交易通知至伺服端。
步驟414:伺服端發送交易資訊至主帳戶的登錄設備。
步驟416:伺服端發送交易資訊至閒置的智慧設備。
參見圖5(b)所示,在實際應用中,智慧設備530為是用戶的智慧手機,用戶可以通過該智慧設備530掃描店鋪內的收款碼560進行付款。付款通知通過網路540發送至伺服端4B,伺服端4B將所述交易資訊發送至智慧設備510與智慧設備520上。
本發明一實施例中,當發生交易,用戶通過收款碼進行收款,付款成功時,所述主帳戶形成交易資訊,並將所述交易資訊發送至主帳戶的登錄設備和閒置的智慧設備。
本發明一實施例中,伺服端將所述交易資訊發送至主帳戶的登錄設備和閒置的智慧設備,所述閒置的智慧設備可以接收到與主帳戶的登錄設備相同的交易資訊。
步驟418:閒置的智慧設備對所述交易資訊進行展示。
本發明一實施例中,通過所述閒置的智慧設備對所述交易資訊進行展示,所述展示可以是語音播報或者螢幕展示。
參見圖5(b)所示,音響550連接智慧設備520。智慧設備520可以通過音響550對接收的交易資訊進行語音播報。
在實際應用中,閒置的智慧手機可以接收到用戶的付款金額,並對所述用戶的付款金額進行語音播報或者通過螢幕顯示出來,店員收聽或者查看付款金額可以對該筆業務進行核對。當店員需要查看一天的收款金額總數目或者詳細每筆金額時,可以通過所述閒置的智慧手機查看這一天的收款金額情況。
本發明一實施例中,通過創建主帳戶對應的子帳戶,在無需要創建新的收款帳戶的情況下可以通過子帳戶接收主帳戶的收款情況;通過利用閒置的智慧手機作為閒置的智慧設備在店鋪中接收收款通知,發生交易時,閒置的智慧設備可以對交易資訊進行語音播報或者畫面展示,實現了變廢為寶;即使主帳戶登錄的設備不在店鋪中,也能夠及時對支付情況進行監控,為用戶和店員提供了便利。
與上述方法實施例相對應,本發明還提供了資料傳輸裝置實施例,應用於終端,圖6示出了本發明一個實施例的資料傳輸裝置的模組圖。如圖6所示,該裝置600包括:
第一接收模組602:被配置為接收主帳戶通過存取設備綁定碼提供的主帳戶資訊,所述主帳戶資訊包括主帳戶的帳戶資訊以及所述主帳戶的登錄設備資訊;
發送模組604:被配置為向所述主帳戶對應的伺服端發送子帳戶的創建請求,所述子帳戶的創建請求中攜帶有所述主帳戶資訊以及子帳戶對應的終端標識資訊;
第二接收模組606:被配置為接收所述伺服端發送的子帳戶創建成功回應,所述子帳戶創建成功回應中攜帶有所述主帳戶資訊以及子帳戶對應的終端標識資訊;
展示模組608:被配置為接收所述伺服端發送的所述主帳戶的交易資訊並展示。
一個可選的實施例中,還包括:
接收單元:被配置為接收查看指令,所述查看指令中包括待查看的目標對象;
顯示單元:被配置為根據所述查看指令顯示所述目的對象的相關資訊。
一個可選的實施例中,通過接收主帳戶通過存取設備綁定碼提供的主帳戶資訊,所述主帳戶資訊包括主帳戶的帳戶資訊以及所述主帳戶的登錄設備資訊,向所述主帳戶對應的伺服端發送子帳戶的創建請求,所述子帳戶的創建請求中攜帶有所述主帳戶資訊以及子帳戶對應的終端標識資訊,接收所述伺服端發送的子帳戶創建成功回應,所述子帳戶創建成功回應中攜帶有所述主帳戶資訊以及子帳戶對應的終端標識資訊;接收所述伺服端發送的所述主帳戶的交易資訊並展示。
與上述方法實施例相對應,本發明還提供了資料傳輸裝置實施例,應用於伺服端,圖7示出了本發明一個實施例的資料傳輸裝置的模組圖。如圖7所示,該裝置700包括:
第三接收模組702:被配置為接收子帳戶的創建請求,所述子帳戶的創建請求中攜帶有主帳戶資訊以及子帳戶對應的終端標識資訊,所述主帳戶資訊包括主帳戶的帳戶資訊以及主帳戶的登錄設備資訊;
發送模組704:被配置為根據所述創建請求為所述主帳戶創建對應的子帳戶,並向所述子帳戶對應的終端和所述主帳戶的登錄設備發送子帳戶創建成功回應,所述子帳戶創建成功回應中攜帶有所述主帳戶資訊以及所述子帳戶對應的終端的標識資訊;
第四接收模組706:被配置為接收所述主帳戶的交易資訊,並將所述交易資訊發送至所述子帳戶對應的終端。
一個可選的實施例中,接收子帳戶的創建請求,所述子帳戶的創建請求中攜帶有主帳戶資訊以及子帳戶對應的終端標識資訊,所述主帳戶資訊包括主帳戶的帳戶資訊以及所述主帳戶的登錄設備資訊,向所述子帳戶對應的終端和所述主帳戶的登錄設備發送子帳戶創建成功回應,所述子帳戶創建成功回應中攜帶有所述主帳戶資訊以及所述子帳戶對應的終端的標識資訊,接收所述主帳戶的交易資訊,並將所述交易資訊發送至所述子帳戶對應的終端。
本發明一實施例中還提供一種計算設備,包括記憶體、處理器及儲存在記憶體上並可在處理器上運行的電腦指令,所述處理器執行所述指令時實現所述的資料傳輸方法的步驟。
本發明一實施例還提供一種電腦可讀儲存媒介,其儲存有電腦指令,該指令被處理器執行時實現如前所述資料傳輸方法的步驟。
上述為本實施例的一種電腦可讀儲存媒介的示意性方案。需要說明的是,該儲存媒介的技術方案與上述的資料傳輸方法的技術方案屬於同一構思,儲存媒介的技術方案未詳細描述的細節內容,均可以參見上述資料傳輸方法的技術方案的描述。
所述電腦指令包括電腦程式代碼,所述電腦程式代碼可以為原始程式碼形式、對象代碼形式、可執行檔或某些中間形式等。所述電腦可讀媒介可以包括:能夠攜帶所述電腦程式代碼的任何實體或裝置、記錄媒介、USB隨身碟、行動硬碟、磁碟、光碟、電腦記憶體、唯讀記憶體(ROM,Read-Only Memory)、隨機存取記憶體(RAM,Random Access Memory)、電載波信號、電信信號以及軟體分發媒介等。需要說明的是,所述電腦可讀媒介包含的內容可以根據司法管轄區內立法和專利實踐的要求進行適當的增減,例如在某些司法管轄區,根據立法和專利實踐,電腦可讀媒介不包括電載波信號和電信信號。
需要說明的是,對於前述的各方法實施例,為了簡便描述,故將其都表述為一系列的動作組合,但是本領域技術人員應該知悉,本發明並不受所描述的動作順序的限制,因為依據本發明,某些步驟可以採用其它順序或者同時進行。其次,本領域技術人員也應該知悉,說明書中所描述的實施例均屬於較佳實施例,所涉及的動作和模組並不一定都是本發明所必須的。
在上述實施例中,對各個實施例的描述都各有側重,某個實施例中沒有詳述的部分,可以參見其它實施例的相關描述。
以上公開的本發明較佳實施例只是用於幫助闡述本發明。可選實施例並沒有詳盡敘述所有的細節,也不限制該發明僅為所述的具體實施方式。顯然,根據本發明的內容,可作很多的修改和變化。本發明選取並具體描述這些實施例,是為了更好地解釋本發明的原理和實際應用,從而使所屬技術領域技術人員能很好地理解和利用本發明。本發明僅受申請專利範圍及其全部範圍和等效物的限制。
In the following description, many specific details are explained in order to fully understand the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the connotation of the present invention. Therefore, the present invention is not limited by the specific implementation disclosed below.
The terms used in one or more embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present invention. The singular forms "a", "said" and "the" used in one or more embodiments of the present invention and the scope of the appended application are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and/or" used in one or more embodiments of the present invention refers to and includes any or all possible combinations of one or more associated listed items.
It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present invention, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of the present invention, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein can be interpreted as "when" or "when" or "in response to certainty".
In the present invention, a data transmission method, device, computing device, and storage medium are provided, which are described in detail in the following embodiments.
Referring to FIG. 1, FIG. 1 is a schematic structural diagram of a data transmission system provided by an embodiment of the present invention. Before introducing the technical solution of the present invention, the structure of the data transmission system involved in the present invention will be described first.
FIG. 1 shows a schematic structural diagram of a data transmission system according to an embodiment of the present invention. Including the server 110, the network 130 and the terminal 120.
The components of the server 110 and the terminal 120 include, but are not limited to, a memory and a processor. The processor and the memory are connected by a bus, and the database is used to store data.
The server 110 and the terminal 120 further include an access device, which enables the server 110 and the terminal 120 to communicate via one or more networks 130. Examples of these networks include public switched telephone network (PSTN), local area network (LAN), wide area network (WAN), personal area network (PAN), or a combination of communication networks such as the Internet.
The access device may include one or more of any type of wired or wireless network interface (for example, a network interface card (NIC)), such as IEEE802.11 wireless local area network (WLAN) wireless interface, global microwave interconnection Access (Wi-MAX) interface, Ethernet interface, universal serial bus (USB) interface, cellular network interface, Bluetooth interface, near field communication (NFC) interface, etc.
FIG. 2 shows a flowchart of a data transmission method according to an embodiment of the present invention, which is applied to a terminal, and includes step 202 to step 208.
Step 202: Receive the master account information provided by the master account by accessing the device binding code, where the master account information includes the account information of the master account and the login device information of the master account.
In an embodiment of the present invention, the device binding code includes a two-dimensional barcode.
In practical applications, the terminal may be an idle smart phone, and the terminal receives the master account information provided by the master account through the access device binding code, wherein the master account may be a merchant's collection account.
The idle smart phone loads the sub-account display module through the network, and the sub-account display module can display the device binding code and also has the function of receiving information and displaying. In practical applications, the sub-account display module can be regarded as a minimalist payment client. The simplified version of the payment client can support viewing the billing information of the main account and displaying the collection information through voice broadcast.
In an embodiment of the present invention, the merchant logs in the master account on the device it holds, and scans the device binding code provided by the idle smart phone through the device. The idle smart phone can obtain the account information and the master account of the merchant’s master account. The login device information of the account.
Step 204: Send a sub-account creation request to the server corresponding to the main account. The sub-account creation request carries the main account information and the identification information of the terminal corresponding to the sub-account.
In an embodiment of the present invention, the account information of the main account includes the account name and login password of the main account; the login device information of the main account includes the device ID of the login device of the main account; the sub-account corresponding to the sub-account The identification information of the terminal includes the ID of the terminal corresponding to the sub-account.
In practical applications, the terminal sends a sub-account creation request to the server corresponding to the main account, and the terminal is the terminal corresponding to the sub-account. The sub-account creation request carries the main account information and terminal identification information, wherein the terminal may include an idle smart phone, and the server corresponding to the main account may include the server of the payment application P, the The account information of the main account may include the account name and login password of the main account of the merchant in the payment application P, and the login device information of the main account may include the device ID of the device that the merchant logs into the payment application P. The terminal identification information of the account may include the device ID of an idle smart phone.
The idle smart phone sends a request for creating a sub-account to the server of the payment application P. The sub-account creation request includes the account name and login password of the merchant’s main account in the payment application P, and Include the device ID of an idle smartphone.
Step 206: Receive a sub-account creation success response sent by the server, where the sub-account creation success response carries the main account information and the identification information of the terminal corresponding to the sub-account.
Step 208: Receive and display the transaction information of the master account sent by the server.
In practical applications, the setting of the specific display mode can be set by the merchant through the login device of the main account, which is not limited by the present invention.
In an embodiment of the present invention, the terminal receives a sub-account creation success response sent by the server, and the sub-account creation success response carries the master account information and the identification information of the terminal corresponding to the sub-account; A sub-account of the master account is successfully created. The sub-account can include the account information of the master account, and when the master account receives the collection information, the sub-account can also receive the collection information. When the sub-account receives the payment information, it is received synchronously; and the main account can call the components of the sub-account login device through the network. For example, the login device of the main account can call the speaker of the sub-account login device. Voice broadcast of the payment amount.
In an embodiment of the present invention, it further includes:
Receiving a viewing instruction, where the viewing instruction includes the target object to be viewed;
Display the relevant information of the target object according to the viewing instruction.
In an embodiment of the present invention, the transaction information of the master account includes the amount of money received by the master account.
In an embodiment of the present invention, the receiving and displaying the transaction information of the master account sent by the server includes:
Receive the transaction information of the master account sent by the server and perform voice broadcast or screen display.
In practical applications, the data transmission method provided in the embodiment of the present invention will be described by taking the payment application P as an example.
When a user makes a purchase in a merchant’s store, he can pay by scanning the payment code provided by the store. When the user’s payment is successful, the merchant’s payment application P forms transaction information, and sends the transaction information to the merchant’s main account and sub-account respectively, so that the idle smart phone can receive the transaction information and respond to the transaction. The information is broadcasted by voice or displayed on the screen. When the clerk listens to or checks the payment amount, he can check the business; when the clerk needs to check the total amount of the payment for a day or the detailed amount of each payment, he can check the payment amount of the day through the idle smart phone .
Through the data transmission method provided by the embodiment of the present invention, the terminal receives the master account information provided by the master account through the access device binding code, and sends the sub-account creation request to the server, and receives the successful creation of the sub-account sent by the server In response, the terminal can be an idle smart device, turning waste into treasure. Without the need to create a new receiving account, you can receive the receipt of the main account through the sub-account; when a transaction occurs, the idle smart device can broadcast or display the transaction information by voice, even if the device logged in to the main account is not available In the store, the payment situation can also be monitored in time, which provides convenience for users and shop assistants.
FIG. 3 shows a flowchart of a data transmission method according to an embodiment of the present invention, which is applied to a server and includes steps 302 to 306.
Step 302: Receive a sub-account creation request, the sub-account creation request carries main account information and terminal identification information corresponding to the sub-account, and the main account information includes account information of the main account and login device information of the main account .
In practical applications, the creation request of the sub-account may be sent by a terminal, which may be an idle smartphone. For example, the server of a payment application P receives the merchant’s main account using its idle smartphone Initiate a creation request for a sub-account, the creation request may include the account name and login password of the main account, and also include the device ID of the device logging in to the main account and the device ID of the idle smartphone corresponding to the sub-account.
The master account may be the merchant's collection account.
Step 304: Create a corresponding sub-account for the main account according to the creation request, and send a sub-account creation success response to the terminal corresponding to the sub-account and the login device of the main account, the sub-account creation success response It carries the main account information and the identification information of the terminal corresponding to the sub-account.
In an embodiment of the present invention, the account information of the master account includes the account name and login password of the master account; the login device information of the master account includes the device ID of the login device of the master account; the identification of the terminal corresponding to the sub-account The information includes the terminal ID corresponding to the sub-account.
In an embodiment of the present invention, a response to the successful creation of the sub-account is sent to the terminal corresponding to the sub-account, and the terminal corresponding to the sub-account is successfully bound to the main account.
Step 306: Receive the transaction information of the master account, and send the transaction information to the terminal corresponding to the sub-account.
In an embodiment of the present invention, the transaction information of the master account includes the amount of money received by the master account.
In practical applications, the data transmission method provided in the embodiment of the present invention will be described by taking the payment application P as an example.
When a user makes a purchase in a merchant’s store, he can pay by scanning the payment code provided by the store. When the user’s payment is successful, the server corresponding to the merchant’s payment application P forms transaction information and sends the transaction information to the merchant’s main account and sub-account, respectively, so that both the main account and the sub-account will receive this Transaction information.
Through the data transmission method provided by the embodiment of the present invention, the server receives the creation request of the sub-account, and the creation request carries the account information of the master account information and the login device information of the master account, and serves as the master according to the creation request. The account creates a corresponding sub-account, and the terminal corresponding to the sub-account can be an idle smart device, which realizes turning waste into treasure. Without the need to create a new collection account, you can receive the payment status of the main account through the sub-account. Even if the device where the main account is logged in is not in the store, the payment status can be monitored in time, which provides convenience for users and store employees .
The data transmission method according to an embodiment of the present invention will be described in detail below with reference to FIG. 4 and FIG. 5. FIG. 4 shows an interaction diagram of a data transmission method according to an embodiment of the present invention. The method involves the login device 4A of the master account, the server 4B, and the idle smart device 4C. The specific process of the method includes steps 402 to 418.
Step 402: The login device of the master account scans the device binding code of the idle smart device.
In the embodiment of the present invention, the idle smart device 4C may be an idle smart phone. The server 4B is the server corresponding to the master account. In practical applications, taking the payment application P cash register as an example, the master account may be the merchant's collection account in the payment application P, and the login device of the master account is the mobile phone used by the merchant to log in to the payment account.
The merchant scans the device binding code on the idle smart phone by logging into the collection account mobile phone, and sends the account name of the collection account, the login password and the merchant's mobile phone device ID to the idle smart phone.
In an embodiment of the present invention, the login device of the master account scans the device binding code provided by the idle smart device, and sends the account information of the master account and the device information of the login device of the master account to the idle smart device , As a basis for creating the sub-account corresponding to the main account.
Step 404: The idle smart device sends a sub-account creation request to the server.
Referring to FIG. 5(a), in practical applications, the smart device 510 is a login device of the merchant's main account, and it may be a smart phone. The smart device 520 is an idle smart device, which may also be a smart phone. There may be multiple smart devices 520 in practical applications. The smart device 510 scans the device binding code provided by the smart device 520 to create a sub-account corresponding to the main account.
In an embodiment of the present invention, the idle smart device sends the account information of the master account and the device information of the master account through the network, and also carries the identification information of the idle smart device to the server corresponding to the master account, requesting said The server corresponding to the master account creates a sub-account for the master account.
Step 406: The server creates a corresponding sub-account for the main account according to the creation request.
Step 408: The server sends a successful creation response to the login device of the master account.
Step 410: The server sends a successful creation response to the idle smart device.
In an embodiment of the present invention, the server corresponding to the master account receives the sub-account creation request sent by the idle smart device, and the server corresponding to the master account responds to the sub-account corresponding to the master account and notifies the master account The login device successfully created the sub-account corresponding to the main account.
In practical applications, the server corresponding to the payment application P sends a successful response to the sub-account that created the merchant’s collection account to the idle smart phone and the merchant’s mobile phone, and the idle smart phone can pass through the sub-account Establish a binding relationship with the master account.
Step 412: The login device of the master account sends a transaction notification to the server.
Step 414: The server sends transaction information to the login device of the master account.
Step 416: The server sends transaction information to the idle smart device.
Referring to FIG. 5(b), in practical applications, the smart device 530 is a user's smart phone, and the user can scan the payment code 560 in the store to make a payment through the smart device 530. The payment notification is sent to the server 4B via the network 540, and the server 4B sends the transaction information to the smart device 510 and the smart device 520.
In an embodiment of the present invention, when a transaction occurs, the user receives the payment through the payment code, and when the payment is successful, the master account forms transaction information, and the transaction information is sent to the login device of the master account and the idle smart device .
In an embodiment of the present invention, the server sends the transaction information to the login device of the master account and the idle smart device, and the idle smart device can receive the same transaction information as the login device of the master account.
Step 418: The idle smart device displays the transaction information.
In an embodiment of the present invention, the transaction information is displayed through the idle smart device, and the display may be a voice broadcast or a screen display.
As shown in FIG. 5(b), the speaker 550 is connected to the smart device 520. The smart device 520 can voice broadcast the received transaction information through the speaker 550.
In practical applications, an idle smart phone can receive the user's payment amount, and broadcast the user's payment amount by voice or display it on the screen. The clerk can check the transaction by listening or viewing the payment amount. When the clerk needs to check the total amount of payment for a day or the details of each amount, he can check the amount of payment for that day through the idle smart phone.
In an embodiment of the present invention, by creating a sub-account corresponding to the main account, the payment status of the main account can be received through the sub-account without the need to create a new collection account; by using an idle smart phone as an idle smart phone The device receives the payment notification in the store. When a transaction occurs, the idle smart device can broadcast the transaction information by voice or screen display, which realizes the transformation of waste into treasure; even if the device with the main account login is not in the store, the payment can be made in time The situation is monitored to provide convenience for users and shop assistants.
Corresponding to the foregoing method embodiment, the present invention also provides an embodiment of a data transmission device, which is applied to a terminal. FIG. 6 shows a module diagram of a data transmission device according to an embodiment of the present invention. As shown in FIG. 6, the device 600 includes:
The first receiving module 602: configured to receive the master account information provided by the master account through the access device binding code, the master account information including the account information of the master account and the login device information of the master account;
Sending module 604: configured to send a sub-account creation request to the server corresponding to the main account, and the sub-account creation request carries the main account information and terminal identification information corresponding to the sub-account;
The second receiving module 606: configured to receive a sub-account creation success response sent by the server, and the sub-account creation success response carries the main account information and terminal identification information corresponding to the sub-account;
Display module 608: configured to receive and display the transaction information of the master account sent by the server.
In an optional embodiment, it further includes:
Receiving unit: configured to receive a viewing instruction, where the viewing instruction includes the target object to be viewed;
Display unit: configured to display relevant information of the target object according to the viewing instruction.
In an optional embodiment, by receiving the master account information provided by the master account through the access device binding code, the master account information includes the account information of the master account and the login device information of the master account, and the master account The server corresponding to the account sends a sub-account creation request, the sub-account creation request carries the main account information and the terminal identification information corresponding to the sub-account, and receives the sub-account creation success response sent by the server, so The sub-account creation success response carries the main account information and the terminal identification information corresponding to the sub-account; the transaction information of the main account sent by the server is received and displayed.
Corresponding to the foregoing method embodiment, the present invention also provides an embodiment of a data transmission device, which is applied to a server end. FIG. 7 shows a module diagram of a data transmission device according to an embodiment of the present invention. As shown in FIG. 7, the device 700 includes:
The third receiving module 702: configured to receive a sub-account creation request, the sub-account creation request carries main account information and terminal identification information corresponding to the sub-account, the main account information includes the account information of the main account And the login device information of the master account;
Sending module 704: configured to create a corresponding sub-account for the main account according to the creation request, and send a sub-account creation success response to the terminal corresponding to the sub-account and the login device of the main account, the The sub-account creation success response carries the main account information and the identification information of the terminal corresponding to the sub-account;
The fourth receiving module 706 is configured to receive transaction information of the main account and send the transaction information to the terminal corresponding to the sub-account.
In an optional embodiment, a request for creation of a sub-account is received, and the request for creation of the sub-account carries main account information and terminal identification information corresponding to the sub-account, and the main account information includes account information of the main account and all The login device information of the main account sends a sub-account creation success response to the terminal corresponding to the sub-account and the login device of the main account, and the sub-account creation success response carries the main account information and the sub-account information. The identification information of the terminal corresponding to the account receives the transaction information of the master account and sends the transaction information to the terminal corresponding to the sub-account.
An embodiment of the present invention also provides a computing device, including a memory, a processor, and computer instructions stored on the memory and capable of running on the processor, and the processor implements the data transmission when the instruction is executed Method steps.
An embodiment of the present invention also provides a computer-readable storage medium, which stores computer instructions, and when the instructions are executed by a processor, the steps of the data transmission method described above are implemented.
The foregoing is a schematic solution of a computer-readable storage medium of this embodiment. It should be noted that the technical solution of the storage medium and the technical solution of the above-mentioned data transmission method belong to the same concept. For details of the technical solution of the storage medium that are not described in detail, please refer to the description of the technical solution of the above-mentioned data transmission method.
The computer instruction includes computer program code, and the computer program code may be in the form of original program code, object code, executable file, or some intermediate forms. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read -Only Memory), Random Access Memory (RAM, Random Access Memory), electric carrier signal, telecommunications signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately added or deleted in accordance with the requirements of the legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to the legislation and patent practice, the computer-readable medium Does not include electrical carrier signals and telecommunication signals.
It should be noted that for the foregoing method embodiments, for simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described sequence of actions. Because according to the present invention, certain steps can be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the involved actions and modules are not necessarily all required by the present invention.
In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The optional embodiment does not describe all the details in detail, nor does it limit the invention to only the described specific implementation. Obviously, many modifications and changes can be made according to the content of the present invention. The present invention selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is only limited by the scope of the patent application and its full scope and equivalents.