Multi-device interaction language setting method and device, electronic device and storage medium
By receiving and processing service access requests carrying language configuration parameters, the user's language settings in multi-device interaction are automatically synchronized, which solves the problem of users repeatedly setting languages on multiple devices, and improves language usage efficiency and operation experience.
Patent Information
- Application Number
- CN202411632613.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2025-03-21
AI Technical Summary
In the case of multi-device interaction, users need to adjust their language preferences individually on each device, resulting in increased operational burden and reduced information reception efficiency, and lack of an effective cross-device language synchronization mechanism.
By receiving a service access request carrying language configuration parameters sent by the first device, the target language selected by the user in the user interface of the second device is determined according to the language configuration parameters, and the corresponding language resource is pushed to the first device.
It realizes automatic synchronization of language settings for users during multi-device interaction, reduces the need for users to repeatedly set languages on different devices, and improves language usage efficiency and operation experience.
Smart Images

Figure CN119668714A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a language setting method, device, electronic device and storage medium for multi-device interaction. Background Art
[0002] Currently, when multiple devices interact, the process of setting the language between different devices often faces many challenges. Especially in a multilingual environment, users need to adjust their language preferences on each device separately, which not only increases the user's operational burden but may also reduce the efficiency of information reception. Although some platforms support user language selection, they lack an effective cross-device language synchronization mechanism. Once a user sets the language on one device, the setting cannot be automatically synchronized to other devices, resulting in the user having to frequently adjust the language when using different devices. Therefore, how to improve the efficiency of users' language use when interacting with multiple devices has become an urgent problem that needs to be solved. Summary of the Invention
[0003] The present invention provides a language setting method, apparatus, electronic device and storage medium for multi-device interaction, which are used to solve the defects in the prior art of how to improve the language usage efficiency of users in multi-device interaction, thereby improving the language usage efficiency of users in multi-device interaction.
[0004] The present invention provides a language setting method for multi-device interaction, which is applied to a server and includes the following steps: receiving a first service access request carrying a language configuration parameter sent by a first device; the first service access request is generated by the first device scanning a QR code provided by a second device; the QR code carries the language configuration parameter; In response to the first service access request, determining, based on the language configuration parameter, a first target language selected by the user in the user interface of the second device; Push resources corresponding to the first target language to the first device.
[0005] According to a language setting method for multi-device interaction provided by the present invention, the method further includes: receiving a second service access request sent by the first device; In response to the second service access request, determining a second target language preferred by the user according to the language setting preference information corresponding to the first device; Pushing resources corresponding to the second target language to the first device; or, When a message needs to be pushed to the first device, a message corresponding to the second target language is pushed to the first device.
[0006] According to a language setting method for multi-device interaction provided by the present invention, after receiving a first service access request carrying a language configuration parameter sent by a first device, the method further includes: The language setting preference information of the user is recorded according to the language configuration parameter carried in the first service access request.
[0007] The present invention provides a language setting method for multi-device interaction, which is applied to a second device and includes the following steps: Obtaining a first target language selected by a user in a user interface of the second device; Switching the display content of the user interface to the first target language for display, and adding language configuration parameters of the first target language to the QR code displayed on the user interface; A QR code carrying the language configuration parameters is displayed for the first device to scan the QR code, and a first service access request carrying the language configuration parameters is sent to a server, so that the server pushes resources corresponding to the first target language to the first device.
[0008] According to a language setting method for multi-device interaction provided by the present invention, after switching the display content of the user interface to the first target language for display, the method further includes: After a set time period, the display content of the user interface is switched to the default language for display; or, After detecting that the user has left, the display content of the user interface is switched to a default language for display.
[0009] According to a language setting method for multi-device interaction provided by the present invention, obtaining a first target language selected by a user in a user interface of the second device includes: Listening for click events of language switching buttons in the user interface; The first target language selected by the user in the user interface is obtained according to the monitored click event.
[0010] The present invention provides a language setting method for multi-device interaction, comprising the following steps: The currency exchange machine sets the system language based on user operations; The coin exchange machine updates at least one QR code displayed on the device according to the system language set by the user, wherein the updated QR code includes the language configuration parameter; The user terminal scans the updated QR code and sends a first service access request carrying the language configuration parameter to the server; The server responds to the first service access request and determines the system language set by the user on the coin exchange machine according to the language configuration parameter; The server pushes resources corresponding to the system language to the user terminal.
[0011] According to a language setting method for multi-device interaction provided by the present invention, the method further includes: The user terminal sends a second service access request to the server; The server responds to the second service access request and determines the system language preferred by the user according to the language setting preference information corresponding to the user terminal; The server pushes resources corresponding to the system language preferred by the user to the user terminal.
[0012] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the language setting method for multi-device interaction as described above is implemented.
[0013] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described language setting methods for multi-device interaction.
[0014] The present invention also provides a computer program product, comprising a computer program, which, when executed by a processor, implements any of the above-described language setting methods for multi-device interaction.
[0015] The language setting method, apparatus, electronic device and storage medium for multi-device interaction provided by the present invention receive a first service access request carrying language configuration parameters sent by a first device; the first service access request is generated by the first device scanning a QR code provided by a second device; responding to the first service access request, determining the first target language selected by the user in the user interface of the second device based on the language configuration parameters; and pushing resources corresponding to the first target language to the first device. Through the above scheme, after the user switches the language on an offline public device, the user can obtain language resources that match their settings through a code scanning device, providing the user with a better operating experience, improving the efficiency of the user receiving information, and achieving consistency and coherence in the language settings between offline public devices and the user's personal devices, thereby improving the user's language usage efficiency during multi-device interaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 This is one of the flow charts of the language setting method for multi-device interaction provided by the present invention.
[0018] Figure 2 This is the second flow chart of the language setting method for multi-device interaction provided by the present invention.
[0019] Figure 3 This is the third flow chart of the language setting method for multi-device interaction provided by the present invention.
[0020] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0021] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0022] The following combination Figures 1-4 The present invention describes a language setting method, apparatus, electronic device and storage medium for multi-device interaction.
[0023] Figure 1 This is one of the flow charts of the language setting method for multi-device interaction provided by the present invention, such as Figure 1 As shown, the method includes the following: Step 101: Receive a first service access request carrying a language configuration parameter sent by a first device.
[0024] In this embodiment of the present invention, the first service access request is generated by the first device scanning a QR code provided by the second device, where the QR code carries language configuration parameters. It is understood that the first device can be a user's personal device, such as a smartphone or tablet, while the second device can be a public device, such as a coin exchange machine or information display. The first device has a display screen, while the second device has a small screen or display area at a specific location for displaying information and operation options.
[0025] In a multi-device interaction scenario, the second device interacts with the first device by generating a QR code, and the first device interacts with the second device and the server by scanning the code. Specifically, after scanning the QR code provided by the second device, the first device sends a first service access request containing language configuration parameters to the server; the server receives the first service access request. The language configuration parameters include language type parameters, language version parameters, and character encoding parameters.
[0026] For example, suppose the first device is a mobile phone, the second device is a coin exchange machine, and the coin exchange machine is equipped with a language switching button, such as a Chinese-English switching button. When the user operates the button to switch the language, the corresponding user interface UI will switch to the language selected by the user (such as Chinese and English). At the same time, based on the language setting of the current system, identification information is added to the interactive QR code presented. Specifically, on the coin exchange machine side, based on the language selected by the current user, an identifier is added to the access address corresponding to the QR code. The identifier will contain the language information set by the current coin exchange machine, such as the language configuration parameters. The user uses the mobile phone to scan the QR code generated by the coin exchange machine and requests access to related services from the server; the server receives the service access request sent by the mobile phone.
[0027] Step 102: In response to the first service access request, determine the first target language selected by the user in the user interface of the second device according to the language configuration parameter.
[0028] It is understood that the server has a dedicated parsing module that can identify and extract the language configuration parameters in the first service access request. These parameters are usually encoded in a specific format in the access address corresponding to the QR code. For example, they are in the form of key-value pairs, such as "language=zh" to indicate Chinese language settings, or they are distinguished by specific encoding symbols, such as "#lang_en" to indicate English language settings.
[0029] The server stores a predefined mapping table of language configuration parameters and language types. This mapping table maps different language configuration parameters to specific languages. For example, the parameter "lang123" might be mapped to Chinese, while "lang456" might be mapped to English. This mapping is determined during the system design phase based on business requirements and possible language settings.
[0030] The server matches the parsed language configuration parameters with the parameters in the mapping table. If a matching parameter is found, the corresponding language type can be determined. For example, assuming the parsed parameter is "lang123", by looking it up in the mapping table, it is determined that the language selected by the user on the second device is Chinese. Once the language type is determined, the server can know the language selected by the user in the user interface of the second device, that is, the first target language. This is because when the second device generates the QR code, it encodes its current language setting in the language configuration parameter of the QR code, and the server successfully restores the user's language selection on the second device by parsing this parameter.
[0031] Step 103: Push resources corresponding to the first target language to the first device.
[0032] After determining the user's selected language, the server selects resources in the corresponding language from its stored language resource library, including text information, image captions, audio prompts, etc., all presented in the user's selected language. The server then pushes these resources to the first device, allowing the user on the first device to also see the same language interface as the second device, improving the user's operational experience and information reception efficiency.
[0033] It is understandable that the embodiments of the present invention are mainly aimed at users operating offline. Although users can configure the corresponding language through their accounts, in related technologies, offline public physical devices that users have interacted with are not also adjusted to the corresponding language. For new users, they may first operate offline devices. Under this condition, the system does not actually record the language used by the user. Therefore, after the user operates the offline device to switch the language, the user can scan the code to register and other steps to directly call the resources of the corresponding language, providing users with a better operating experience. Specifically, after the user switches the language on the coin exchange machine, the system will record this language selection. When the user then performs operations such as scanning the code to register, the system can recognize the user's language setting on the previous offline device and directly call the resources of the corresponding language. In this way, whether it is a new user or an old user, when performing subsequent online operations after using the offline device, they can obtain the same language service as that selected on the offline device, which greatly improves the user's operating convenience and experience.
[0034] The language setting method for multi-device interaction provided by an embodiment of the present invention is implemented by receiving a first service access request carrying language configuration parameters sent by a first device; the first service access request is generated by the first device scanning a QR code provided by a second device; the QR code carries the language configuration parameters; responding to the first service access request, determining the first target language selected by the user in the user interface of the second device based on the language configuration parameters; and pushing resources corresponding to the first target language to the first device. Through the above scheme, after the user switches the language on an offline public device, the user can obtain language resources that match their settings through the code scanning device, providing the user with a better operating experience, improving the efficiency of the user receiving information, and achieving consistency and coherence in the language settings between offline public devices and the user's personal devices, thereby improving the user's language usage efficiency during multi-device interaction.
[0035] Based on the above embodiment, the method further includes: Step 110: receiving a second service access request sent by the first device; Step 111: responding to the second service access request, determining a second target language preferred by the user according to the language setting preference information corresponding to the first device; Step 112: Push resources corresponding to the second target language to the first device; or Step 113: When a message needs to be pushed to the first device, a message corresponding to the second target language is pushed to the first device.
[0036] The server records the user's language setting preference information. Specifically, based on the language configuration parameters carried in the first service access request, the server records the user's language setting preference information, wherein the language setting preference information includes information such as language type, language version, and language resource form.
[0037] It's understandable that users don't need to reset their language each time they interact with different devices. For example, if a user selects Chinese on a coin exchange machine and then uses their phone to access a related webpage or mini-program, the system will automatically recognize the user's language preference and display the content in Chinese, avoiding the confusion and misunderstandings caused by language inconsistencies. Furthermore, by recording the user's language preference, the server can provide users with more personalized services, not only in terms of language display but also by adjusting the presentation and content of information based on the user's language preference. For example, if a user prefers Chinese, the server can prioritize content in Chinese when pushing information, as it is more clearly expressed and more appropriate to the Chinese context.
[0038] For long-term user access, the server uses the user's language setting preference by default, which is based on the assumption that the user's language habits are relatively stable over a long period of time. Specifically, a second service access request sent by the first device is received; the second service access request is responded to, and the second target language preferred by the user is determined based on the language setting preference information corresponding to the first device; the resources corresponding to the second target language are pushed to the first device; wherein the second service access request is a service access request sent directly by the first device to the server, not by scanning a QR code. For example, a user who frequently uses a financial application sets a Chinese language preference on a coin exchange machine. For a long period of time in the future, whether the application is accessed through a web page or a mini-program, the system will display financial data, market analysis and other content in Chinese.
[0039] In addition, for a period of time afterwards, the server will use the language previously set by the user by default when pushing information to the user, where the setting of "a period of time" is usually based on the short-term stability of user behavior. During this period of time, the user's language needs usually do not change much, so the server can quickly and accurately push information that the user can understand to the user. Specifically, when the server needs to push a message to the first device, it pushes a message corresponding to the second target language to the first device. For example, in a travel application, after the user sets the English language preference on the coin exchange machine, in the next few days, the server will use English when pushing local tourist information, attraction introductions and other content to the user. In this way, users can more conveniently obtain the information they need without having to confirm the language setting every time they receive information.
[0040] Although the server defaults to the user's language preference for a certain period of time, if the user changes their language setting during this period, the server will promptly update the record and use the new language in subsequent information push. Furthermore, if the server detects a change in user behavior, such as frequent access to content in a different language, it can also prompt the user to change their language setting, providing more attentive service.
[0041] This embodiment of the present invention records the user's language preference information and, over a period of time or longer, automatically uses the user's preferred language when pushing information to the user or when the user revisits the relevant webpage or mini-program. This enables more accurate and efficient information delivery and improves user utilization of information.
[0042] Figure 2 This is the second flow chart of the language setting method for multi-device interaction provided by the present invention. Figure 2 As shown, the method includes the following: Step 201: Obtain the first target language selected by the user in the user interface of the second device.
[0043] The user can select the desired language through the user interface of the second device. Specifically, monitor the click event of the language switching button in the user interface, and then obtain the first target language selected by the user in the user interface according to the monitored click event.
[0044] It can be understood that the second device (such as a coin-changing machine) is configured with a language switching button, and the user switches the language by operating this button. Among them, the language switching button is a key UI element, and this button is given clear functions and visual cues in the design. For example, there will be Chinese and English text labels ("Chinese / 中文" and "English / 英文") on the button to indicate its use. The button will be placed in a prominent and easy-to-operate position in the user interface layout, usually near the edge of the device or near the main operation area, to facilitate the user to quickly find and use it.
[0045] When the user clicks the button to select a specific language (such as English or Chinese in the Chinese-English switch), the system of the second device will record this selection. For example, the interface control system of the coin-changing machine will store the language state selected by the user for subsequent use. This stored language state can be a simple flag bit, such as "0" representing Chinese and "1" representing English.
[0046] In order to capture the user's operation on the language switching button, an event listening mechanism needs to be added to the button in the program. During the listening process, the language selected by the user can be determined through the state of the button. For example, the language switching button can be a toggle-type button, which shows "Chinese" in the initial state, switches to "English" after being clicked, and switches back to "Chinese" when clicked again. Or, associate a variable with the button to represent the language state. For example, an integer variable languageState can be defined in the program, with an initial value of 0 representing Chinese and 1 representing English; when the language switching button is clicked, change the value of this variable in the event handler, and determine the language selected by the user according to the variable value.
[0047] By listening to the user's language selection, real-time response can be achieved. When the user clicks the language switching button, the system can immediately capture this operation and quickly make corresponding changes, thereby improving the user experience.
[0048] Step 202: Switch the display content of the user interface to be displayed in the first target language, and add the language configuration parameters of the first target language to the QR code displayed in the user interface.
[0049] When the user presses the language switch button, the corresponding user interface switches to the user's selected language. For example, when the user selects Chinese, the text and icon descriptions on the coin exchange machine's display switch to Chinese. The coin exchange machine can also associate this Chinese language setting with a specific code or identifier for use in subsequent QR code generation.
[0050] The second device adds a language configuration parameter to the displayed QR code based on the current system language setting. This language configuration parameter can be understood as an identifier that conveys the language currently set on the second device. For example, if the second device is currently set to Chinese, when generating the QR code, a specific identifier, such as "lang=zh", will be added to the access address corresponding to the QR code to indicate the Chinese language.
[0051] Step 203: Display a QR code carrying the language configuration parameters for the first device to scan, and send a first service access request carrying the language configuration parameters to the server, so that the server pushes resources corresponding to the first target language to the first device.
[0052] The second device interacts with the first device by generating a QR code, and the first device interacts with the second device and the server by scanning the code. Specifically, after scanning the QR code provided by the second device, the first device sends a first service access request containing language configuration parameters to the server. The server receives the first service access request and pushes resources corresponding to the first target language to the first device.
[0053] The language setting method for multi-device interaction provided by an embodiment of the present invention obtains the first target language selected by the user in the user interface of the second device; switches the display content of the user interface to the first target language for display, and adds the language configuration parameters of the first target language to the QR code displayed in the user interface; displays the QR code carrying the language configuration parameters for the first device to scan the QR code, and sends a first service access request carrying the language configuration parameters to the server. Through the above scheme, after the user switches the language on the offline public device, the user can obtain the language resources that match its settings through the code scanning device, providing the user with a better operating experience, improving the efficiency of the user in receiving information, and achieving consistency and coherence of the language settings between the offline public device and the user's personal device, thereby improving the user's language usage efficiency in multi-device interaction.
[0054] Based on the above embodiment, after switching the display content of the user interface to the first target language for display, the method further includes: Step 2020: After a set time period, the display content of the user interface is switched to the default language for display; or, Step 2021: After detecting that the user has left, the display content of the user interface is switched to the default language for display.
[0055] The second device can record the time of the user's last language switch operation. If there is no new language operation after a certain period of time, the second device can automatically switch back to the default language, or send the current language status and operation time to the server for record. For example, when a user selects English on a coin exchange machine, the coin exchange machine will record this operation time. If there is no new language switch operation within a period of time, the coin exchange machine can switch the language back to the default language according to preset rules, or send the current English language setting and operation time to the server so that the server can understand the user's language selection history on the second device in subsequent interactions.
[0056] Additionally, sensors can be used to detect whether the user currently switching languages has left the device to assist in determining the language setting. If the sensor detects that the user has left, the second device can consider switching the language back to the default language or recording the current language status for subsequent use. For example, an infrared sensor can be used to detect whether the user is within a certain range. If the user leaves the detection range, the second device can send the current language status to a server for recording or update the language status flag in local storage.
[0057] For public devices like coin exchange machines, multiple users may use them at different times. If the previous user switches the language to a non-default one, subsequent users may need to readjust their language settings, which can be inconvenient. By automatically switching back to the default language, the present invention allows the device to quickly restore to a language familiar to most users, providing a convenient initial experience for the next user and reducing language conflicts and operational barriers between users.
[0058] Figure 3 This is the third flow chart of the language setting method for multi-device interaction provided by the present invention. Figure 3 As shown, the method includes the following: Step 301: The coin exchange machine sets the system language based on the user's operation; Step 302: The coin exchange machine updates at least one QR code displayed on the device according to the system language set by the user, wherein the updated QR code includes the language configuration parameter; Step 303: The user terminal scans the updated QR code and sends a first service access request carrying language configuration parameters to the server; Step 304: The server responds to the first service access request and determines the system language set by the user on the coin exchange machine based on the language configuration parameter; Step 305: The server pushes resources corresponding to the system language to the user terminal.
[0059] First, the coin exchange machine sets the system language based on user input. Next, the machine updates the QR code and incorporates the language configuration parameters. This step establishes a communication bridge between the coin exchange machine and the online system (server and user terminal). By including the language configuration parameters in the QR code, subsequent interactions can be based on the user's language selection on the coin exchange machine. The user terminal then scans the updated QR code and sends a first service access request to the server, carrying the language configuration parameters. The user terminal, acting as the interface for user interaction with the system, transmits the user's request (for accessing relevant services) and the language setting on the coin exchange machine to the server. Finally, the server responds to the first service access request, determines the system language set by the user on the coin exchange machine based on the language configuration parameters, and pushes resources corresponding to that system language to the user terminal.
[0060] In one embodiment, the user terminal sends a second service access request to the server; the server responds to the second service access request and determines the user's preferred system language based on the language setting preference information corresponding to the user terminal; the server pushes resources corresponding to the user's preferred system language to the user terminal. For example, when a user selects Chinese language on a coin exchange machine and then uses a mobile phone to access a related web page or mini-program, the system will automatically identify the user's language preference and display the content in Chinese, avoiding the confusion and misunderstanding caused by language inconsistency. In addition, by recording the user's language preference, the server can provide users with more personalized services, which is not only reflected in the language display, but also in adjusting the presentation and content of information based on the user's language preference. For example, if the user prefers Chinese, the server can give priority to content that is more clearly expressed in Chinese and more in line with the Chinese context when pushing information.
[0061] The embodiment of the present invention solves the problem of inconvenient language settings when interacting with multiple devices. The user only needs to switch the language on one coin exchange machine, and other devices (such as mobile phones) can obtain the user's language preference by scanning the code, eliminating the need for the user to repeatedly set the language on each device, greatly improving the user's operating experience. At the same time, by unifying the user's language settings on different devices, when relevant resources are pushed to the user, the user can receive information in a familiar language, thereby improving the efficiency of information reception. In related technologies, the system does not record the language used by the user, resulting in new users facing language difficulties when operating offline devices. However, this solution allows the user to directly call resources in the corresponding language after switching the language on the offline device, and then scan the code to register and other steps to provide a better operating experience for new users.
[0062] Figure 4 An example of a physical structure diagram of an electronic device is shown below. Figure 4As shown, the electronic device may include: a processor 410, a communications interface 420, a memory 430, and a communications bus 440, wherein the processor 410, the communications interface 420, and the memory 430 communicate with each other via the communications bus 440. The processor 410 may invoke logic instructions in the memory 430 to execute a language setting method for multi-device interaction, the method comprising: receiving a first service access request carrying language configuration parameters from a first device; the first service access request is generated by the first device scanning a QR code provided by a second device; the QR code carries the language configuration parameters; responding to the first service access request, determining a first target language selected by a user in the user interface of the second device based on the language configuration parameters; and pushing resources corresponding to the first target language to the first device.
[0063] The processor 410 can call the logical instructions in the memory 430 to execute the language setting method for multi-device interaction, which includes: obtaining the first target language selected by the user in the user interface of the second device; switching the display content of the user interface to the first target language for display, and adding the language configuration parameters of the first target language to the QR code displayed on the user interface; displaying the QR code carrying the language configuration parameters for the first device to scan the QR code, and sending a first business access request carrying the language configuration parameters to the server, so that the server pushes the resources corresponding to the first target language to the first device.
[0064] The processor 410 can call the logical instructions in the memory 430 to execute the language setting method for multi-device interaction, which includes: the coin exchange machine sets the system language based on user operations; the coin exchange machine updates at least one QR code displayed in the device according to the system language set by the user, wherein the updated QR code contains language configuration parameters; the user terminal scans the updated QR code and sends a first business access request carrying the language configuration parameters to the server; the server responds to the first business access request and determines the system language set by the user in the coin exchange machine according to the language configuration parameters; the server pushes the resources corresponding to the system language to the user terminal.
[0065] Furthermore, the logic instructions in the aforementioned memory 430 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product, stored in a storage medium, includes instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0066] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the language setting method for multi-device interaction provided by the above methods, the method including: receiving a first service access request carrying language configuration parameters sent by a first device; the first service access request is generated by the first device scanning a QR code provided by a second device; the QR code carries the language configuration parameters; responding to the first service access request, determining the first target language selected by the user in the user interface of the second device according to the language configuration parameters; and pushing resources corresponding to the first target language to the first device.
[0067] When the computer program is executed by a processor, the computer can execute the language setting method for multi-device interaction provided by the above methods, which includes: obtaining a first target language selected by a user in the user interface of the second device; switching the display content of the user interface to the first target language for display, and adding language configuration parameters of the first target language to the QR code displayed on the user interface; displaying a QR code carrying the language configuration parameters for the first device to scan the QR code, and sending a first service access request carrying the language configuration parameters to a server, so that the server pushes resources corresponding to the first target language to the first device.
[0068] When the computer program is executed by the processor, the computer can execute the language setting method for multi-device interaction provided by the above methods, which includes: the coin exchange machine sets the system language based on the user operation; the coin exchange machine updates at least one QR code displayed in the device according to the system language set by the user, wherein the updated QR code contains the language configuration parameters; the user terminal scans the updated QR code and sends a first business access request carrying the language configuration parameters to the server; the server responds to the first business access request and determines the system language set by the user in the coin exchange machine according to the language configuration parameters; the server pushes the resources corresponding to the system language to the user terminal.
[0069] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the language setting method for multi-device interaction provided by the above-mentioned methods, the method comprising: receiving a first service access request carrying language configuration parameters sent by a first device; the first service access request is generated by the first device scanning a QR code provided by a second device; the QR code carries the language configuration parameters; responding to the first service access request, determining the first target language selected by the user in the user interface of the second device according to the language configuration parameters; and pushing resources corresponding to the first target language to the first device.
[0070] When executed by a processor, the computer program is implemented to execute the language setting method for multi-device interaction provided by the above methods, which includes: obtaining a first target language selected by a user in the user interface of the second device; switching the display content of the user interface to the first target language for display, and adding language configuration parameters of the first target language to the QR code displayed on the user interface; displaying a QR code carrying the language configuration parameters for the first device to scan the QR code, and sending a first service access request carrying the language configuration parameters to a server, so that the server pushes resources corresponding to the first target language to the first device.
[0071] When the computer program is executed by the processor, it is implemented to execute the language setting method for multi-device interaction provided by the above methods, which includes: the coin exchange machine sets the system language based on the user operation; the coin exchange machine updates at least one QR code displayed in the device according to the system language set by the user, wherein the updated QR code contains the language configuration parameters; the user terminal scans the updated QR code and sends a first business access request carrying the language configuration parameters to the server; the server responds to the first business access request and determines the system language set by the user on the coin exchange machine according to the language configuration parameters; the server pushes the resources corresponding to the system language to the user terminal.
[0072] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0073] Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented using software plus a necessary general-purpose hardware platform, or of course, hardware. Based on this understanding, the essence of the above technical solution, or the portion that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, or an optical disk, and includes a number of instructions for causing a computer device (such as a personal computer, server, or network device) to execute the methods described in each embodiment or certain portions of the embodiments.
[0074] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A language setting method for multi-device interaction, characterized in that: Applicable to servers, including: receiving a first service access request carrying a language configuration parameter sent by a first device; the first service access request is generated by the first device scanning a QR code provided by a second device; the QR code carries the language configuration parameter; In response to the first service access request, determining, according to the language configuration parameter, a first target language selected by the user in the user interface of the second device; Push resources corresponding to the first target language to the first device.
2. The language setting method for multi-device interaction according to claim 1, characterized in that: The method further comprises: receiving a second service access request sent by the first device; In response to the second service access request, determining a second target language preferred by the user according to the language setting preference information corresponding to the first device; Pushing resources corresponding to the second target language to the first device; or, When it is necessary to push a message to the first device, a message corresponding to the second target language is pushed to the first device.
3. The language setting method for multi-device interaction according to claim 1, characterized in that: After receiving the first service access request carrying the language configuration parameter sent by the first device, the method further includes: The language setting preference information of the user is recorded according to the language configuration parameter carried in the first service access request.
4. A language setting method for multi-device interaction, characterized in that: Applied to the second device, comprising: Acquire a first target language selected by a user in a user interface of the second device; Switching the display content of the user interface to the first target language for display, and adding the language configuration parameters of the first target language to the QR code displayed on the user interface; A QR code carrying the language configuration parameters is displayed for the first device to scan the QR code, and a first service access request carrying the language configuration parameters is sent to a server, so that the server pushes resources corresponding to the first target language to the first device.
5. The language setting method for multi-device interaction according to claim 4, characterized in that: After switching the display content of the user interface to the first target language for display, the method further includes: After a set time period, the display content of the user interface is switched to a default language for display; or, After detecting that the user has left, the display content of the user interface is switched to a default language for display.
6. The language setting method for multi-device interaction according to claim 4, characterized in that: The acquiring the first target language selected by the user in the user interface of the second device includes: Listening for a click event of a language switch button in the user interface; According to the monitored click event, a first target language selected by the user in the user interface is obtained.
7. A language setting method for multi-device interaction, characterized in that: include: The currency exchange machine sets the system language based on user operations; The coin exchange machine updates at least one QR code displayed in the device according to the system language set by the user, wherein the updated QR code includes a language configuration parameter; The user terminal scans the updated QR code and sends a first service access request carrying the language configuration parameter to the server; The server responds to the first service access request and determines the system language set by the user at the currency exchange machine according to the language configuration parameter; The server pushes resources corresponding to the system language to the user terminal.
8. The language setting method for multi-device interaction according to claim 7, characterized in that: The method further comprises: The user terminal sends a second service access request to the server; The server responds to the second service access request and determines the system language preferred by the user according to the language setting preference information corresponding to the user terminal; The server pushes resources corresponding to the system language preferred by the user to the user terminal.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the language setting method for multi-device interaction according to any one of claims 1 to 8 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the language setting method for multi-device interaction as claimed in any one of claims 1 to 8 is implemented.