CN115733879A - Target page pushing method and device, storage medium and electronic device - Google Patents

Target page pushing method and device, storage medium and electronic device Download PDF

Info

Publication number
CN115733879A
CN115733879A CN202211183802.1A CN202211183802A CN115733879A CN 115733879 A CN115733879 A CN 115733879A CN 202211183802 A CN202211183802 A CN 202211183802A CN 115733879 A CN115733879 A CN 115733879A
Authority
CN
China
Prior art keywords
data
target
page
type data
target page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211183802.1A
Other languages
Chinese (zh)
Inventor
郭丽娜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202211183802.1A priority Critical patent/CN115733879A/en
Publication of CN115733879A publication Critical patent/CN115733879A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a target page pushing method, a target page pushing device, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the target page pushing method comprises the following steps: reading label data of a near field communication label NFC in a first mobile terminal to obtain uniform positioning resource indicator (URL) data written in the label data; analyzing the URL data to obtain service type data used for indicating a target page, wherein the service type data at least comprises one of the following data: scene type data, device type data; and determining a target address corresponding to the service type data according to a preset splicing rule, and pushing a target page corresponding to the target address to a target object.

Description

Target page pushing method and device, storage medium and electronic device
Technical Field
The application relates to the technical field of smart homes, in particular to a target page pushing method and device, a storage medium and an electronic device.
Background
At present, the continuous development of the household appliance industry accelerates the intelligent household appliances to step into the steps of thousands of households, along with the fact that the same user has more and more intelligent household appliances, the requirement of the user on software for managing the intelligent household appliances is higher and higher, although the current management software provides multiple functions of binding equipment, switching scenes, jumping pages and the like, the functions are multiple and complex to operate, the operation difficulty is very high, and the use feeling of the user is not really improved. For example, a certain intelligent home software can bind a plurality of intelligent home appliances such as a refrigerator, a washing machine, a sweeper, a monitor, a massage chair and the like, and provide various different functions for each intelligent home appliance. Under the condition, if a user wants to open the washing machine, a certain smart software is required to be opened firstly to find the washing machine bound by the family of the user, then an equipment detail page of the washing machine is opened, and an opening button of the washing machine is searched according to the first level and the second level of the detail page function display area. If the user wants to open a certain custom scene, the user still needs to open certain smart software first, find the option of the 'my scene' in the scene tab, then find the target scene in the option of the 'my scene', and click to execute the target scene.
Therefore, in the related art, there is a problem of how to push a target page to a user to improve a user's feeling of use.
In the related art, an effective solution is not provided for the problem of how to push a target page to a user to improve the use feeling of the user.
Disclosure of Invention
The embodiment of the application provides a method and a device for pushing a target page, a storage medium and an electronic device, so as to at least solve the problem of how to push the target page to a user to improve the use feeling of the user in the related art.
According to an embodiment of the present application, a method for pushing a target page is provided, including: reading label data of a near field communication label NFC in a first mobile terminal to obtain uniform positioning resource indicator (URL) data written in the label data; analyzing the URL data to obtain service type data used for indicating a target page, wherein the service type data at least comprises one of the following data: scene type data, device type data; and determining a target address corresponding to the service type data according to a preset splicing rule, and pushing a target page corresponding to the target address to a target object.
In an exemplary embodiment, before reading tag data of a received near field communication tag and acquiring URL data corresponding to the tag data, the method further includes: analyzing the page data of the target page to obtain a user-defined parameter and the service type of the page data, and determining a fixed parameter corresponding to a first service type of the page data; under the condition that the user-defined parameters and the fixed parameters are determined to pass the inspection, generating writing parameters according to the user-defined parameters and the fixed parameters; generating tag data of the NFC based on the write parameters.
In an exemplary embodiment, in the case that it is determined that both the custom parameter and the fixed parameter pass the verification, generating a write parameter according to the custom parameter and the fixed parameter includes: determining a second service type corresponding to the self-defined parameter; and under the condition that the first service type is consistent with the second service type, if the self-defined parameter and the fixed parameter are determined not to be empty, respectively determining a first character string of the self-defined parameter and a second character string of the fixed parameter, and splicing the first character string and the second character string to obtain the writing parameter.
In an exemplary embodiment, splicing out the target address corresponding to the service type data according to a preset splicing rule includes: determining login data in the service type data under the condition that the service type data is determined not to be empty; obtaining a page address of the target page from the URL data under the condition that the login data indicates that the login state in the target page is logged in; and determining the target address by the service type data and the page address based on a scene address splicing rule corresponding to the service type data.
In an exemplary embodiment, after determining the login data in the traffic type data, the method further comprises: under the condition that the login data indicate that the login state in the target page is not logged in, sending login prompt information to a mobile terminal to prompt the target object to log in the target page; or sending a default home page to the target object when the login data indicates that the login state in the target page is not logged in, wherein the default home page represents a navigation page corresponding to the target page.
In an exemplary embodiment, the service type data includes the device type data, and after determining the login data in the service type data, the method further includes: under the condition that the login data in the device type data indicate that the login state in the target page is not logged in, sending login prompt information to the target object to prompt the target object to log in the target page and refreshing a device list corresponding to the device type data; and sending a default homepage to the target object under the condition that the equipment list corresponding to the equipment type data fails to be refreshed or the target object fails to log in the target page.
In an exemplary embodiment, in a case that it is determined that the login data in the device type data indicates that the login status in the target page is not logged in, sending login prompting information to the target object to prompt the target object to log in the target page, and after refreshing a device list corresponding to the device type data, the method further includes: under the condition that the login data in the device type data indicate that the login state in the target page is the logged-in state, acquiring the object information of the target object with the logged-in state; and under the condition that the object information of the logged target object is determined not to be empty in the login state, if the device list corresponding to the device type data is determined to be successfully refreshed, obtaining the page address of the target page from the URL data, and splicing the device type data and the page address based on the device address splicing rule corresponding to the device type data to obtain the target address.
According to another embodiment of the present application, there is also provided a device for pushing a target page, including: the reading module is used for reading tag data of a near field communication tag NFC in a first mobile terminal to obtain URL data written in the tag data; an obtaining module, configured to parse the URL data to obtain service type data used for indicating a target page, where the service type data at least includes one of the following: scene type data, device type data; and the determining module is used for determining a target address corresponding to the service type data according to a preset splicing rule and pushing a target page corresponding to the target address to a target object.
According to another embodiment of the present application, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the method for pushing the target page when running.
According to another aspect of the embodiments of the present application, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the method for pushing the target page through the computer program.
In the embodiment of the application, reading tag data of a near field communication tag NFC in a first mobile terminal to obtain URL data written in the tag data; analyzing the URL data to obtain at least one of the following data used for indicating the target page: scene type data, service type data of equipment type data; determining a target address corresponding to the service type data according to a preset splicing rule, and pushing a target page corresponding to the target address to a target object; by adopting the technical scheme, the problem of how to push the target page to the user so as to improve the use feeling of the user is solved, the step of pushing the target page to the user is further simplified, the operation difficulty of pushing the target page to the user is reduced, and the use feeling of the user is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a hardware environment diagram of a push method for a target page according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for pushing a target page according to an embodiment of the present application;
fig. 3 is a schematic diagram of tag data writing for NFC according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a push process of a target page according to an embodiment of the application;
fig. 5 is a block diagram of a push apparatus for a target page according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the accompanying drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be implemented in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiment of the application, a method for pushing a target page is provided. The target page pushing method is widely applied to full-House intelligent digital control application scenes such as intelligent homes (Smart Home), intelligent homes, intelligent Home equipment ecology, intelligent House (Intelligent House) ecology and the like. Alternatively, in this embodiment, the method for pushing the target page may be applied to a hardware environment formed by the terminal device 102 and the server 104 shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be configured to provide a service (e.g., an application service) for the terminal or a client installed on the terminal, set a database on the server or independent of the server, and provide a data storage service for the server 104, and configure a cloud computing and/or edge computing service on the server or independent of the server, and provide a data operation service for the server 104.
The network may include, but is not limited to, at least one of: wired networks, wireless networks. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity), bluetooth. Terminal equipment 102 can be but not limited to be PC, the cell-phone, the panel computer, intelligent air conditioner, intelligent cigarette machine, intelligent refrigerator, intelligent oven, intelligent kitchen range, intelligent washing machine, intelligent water heater, intelligent washing equipment, intelligent dish washer, intelligent projection equipment, intelligent TV, intelligent clothes hanger, intelligent (window) curtain, intelligence audio-visual, smart jack, intelligent stereo set, intelligent audio amplifier, intelligent new trend equipment, intelligent kitchen guarding equipment, intelligent bathroom equipment, intelligence robot of sweeping the floor, intelligence robot of wiping the window, intelligence robot of mopping the ground, intelligent air purification equipment, intelligent steam ager, intelligent microwave oven, intelligent kitchen is precious, intelligent clarifier, intelligent water dispenser, intelligent lock etc..
In this embodiment, a method for pushing a target page is provided, and is applied to the above-mentioned computer terminal, and fig. 2 is a flowchart of the method for pushing a target page according to the embodiment of the present application, where the flowchart includes the following steps:
step S202, reading tag data of a near field communication tag NFC in a first mobile terminal to obtain URL data written in the tag data;
among them, near Field Communication (NFC), also called Near field communication, is an emerging technology, and devices (such as mobile phones) using the NFC technology can exchange data when being close to each other, thereby implementing a function of reading tag data according to NFC.
The URL (Uniform Resource Locator) may be understood as page data corresponding to the target page.
Step S204, analyzing the URL data to obtain service type data for indicating a target page, wherein the service type data at least comprises one of the following data: scene type data, device type data;
step S206, determining a target address corresponding to the service type data according to a preset splicing rule, and pushing a target page corresponding to the target address to a target object.
It should be noted that the preset splicing rule may be, for example, a string splicing rule implemented by the splicer "+", or may include a string splicing rule implemented by the splicer "-", which is not limited in this application.
The target address to be spliced by the preset splicing rule corresponds to the service type data, for example, corresponds to the scene type data, and the target address to be spliced by the preset splicing rule may include an address of a device detail page, an address of a device function, or an address of a device operation, but is not limited thereto. Corresponding to the scene type address, the target address to be spliced by the preset splicing rule may include a target scene page, but is not limited thereto.
Through the steps, reading tag data of a near field communication tag NFC in a first mobile terminal to obtain URL data written in the tag data; analyzing the URL data to obtain service type data used for indicating a target page, wherein the service type data at least comprises one of the following data: scene type data, device type data; and determining a target address corresponding to the service type data according to a preset splicing rule, and pushing a target page corresponding to the target address to a target object, so that the problem of how to push the target page to a user to improve the use feeling of the user in the related technology is solved, the step of pushing the target page to the user is further simplified, the operation difficulty of pushing the target page to the user is reduced, and the use feeling of the user is improved.
In an exemplary embodiment, before reading tag data of a received near field communication tag and acquiring URL data corresponding to the tag data, the following scheme is further proposed, and the specific steps include: analyzing the page data of the target page to obtain a user-defined parameter and a service type of the page data, and determining a fixed parameter corresponding to a first service type of the page data; under the condition that the user-defined parameters and the fixed parameters are determined to pass the inspection, generating writing parameters according to the user-defined parameters and the fixed parameters; generating tag data of the NFC based on the write parameters.
It should be noted that the above process of checking the customized parameter and the fixed parameter includes a null value checking process of the customized parameter and the fixed parameter, that is, under the condition that it is determined that neither the customized parameter nor the fixed parameter is null, it may be determined that both the customized parameter and the fixed parameter pass the check.
Optionally, the generating the NFC tag data based on the write parameter includes the following steps: determining a write page for writing tag data of the NFC; and generating the NFC label data on the write page. For example, taking the device type data of the washing machine as an example, the format of the device type data of the washing machine input by the user on the write page is converted to obtain the NFC tag data in the format supported by the write page.
Optionally, in an embodiment, the tag data of the NFC is written into the write page, and in the case of write failure, a reason for the write failure is sent to the target object, and the target object is prompted to rewrite according to the reason for the write failure. The reason for the write failure at least includes one of the following reasons: the data type of the tag data of the NFC is a type which cannot be directly written in, the data content is long, the data format is abnormal, and data identification fails due to the fact that the distance when the data is written in is too long.
In an exemplary embodiment, an implementation scheme is provided for generating a write parameter according to a user-defined parameter and a fixed parameter when it is determined that both the user-defined parameter and the fixed parameter pass a check, and the specific steps include: determining a second service type corresponding to the self-defined parameter; and under the condition that the first service type is consistent with the second service type, if the self-defined parameter and the fixed parameter are determined not to be empty, respectively determining a first character string of the self-defined parameter and a second character string of the fixed parameter, and splicing the first character string and the second character string to obtain the writing parameter.
In one embodiment, if the user-defined parameters and the fixed parameters are determined to be empty, a message of parameter missing is prompted, and the write page is closed.
In an exemplary embodiment, in order to better describe the process of splicing the target addresses corresponding to the service type data according to the preset splicing rule in step S206, the following implementation processes are proposed: determining login data in the service type data under the condition that the service type data is determined not to be empty; obtaining a page address of the target page from the URL data under the condition that the login data indicates that the login state in the target page is logged in; and determining the target address by the service type data and the page address based on a scene address splicing rule corresponding to the service type data.
Optionally, in an exemplary embodiment, after determining login data in the service type data, a plurality of technical solutions are further proposed, including: in the scheme 1, under the condition that the login data indicate that the login state in the target page is not logged in, login prompt information is sent to a mobile terminal to prompt the target object to log in the target page; or sending a default home page to the target object when the login data indicates that the login state in the target page is not logged in, wherein the default home page represents a navigation page corresponding to the target page.
In the case that it is determined that the login data in the device type data indicate that the login state in the target page is not logged in, sending login prompt information to the target object to prompt the target object to log in the target page, and refreshing a device list corresponding to the device type data; and sending a default homepage to the target object under the condition that the device list corresponding to the device type data fails to be refreshed or the target object fails to log in the target page. It should be noted that the service type data of scheme 2 includes the device type data.
Based on the scheme 2, further, in an exemplary embodiment, in a case that it is determined that the login data in the device type data indicates that the login state in the target page is not logged in, sending login prompting information to the target object to prompt the target object to log in the target page, and after refreshing the device list corresponding to the device type data, the method further includes: under the condition that the login data in the device type data indicate that the login state in the target page is the logged-in state, acquiring the object information of the target object with the logged-in state; and under the condition that the object information of the logged target object is determined not to be empty in the login state, if the device list corresponding to the device type data is determined to be successfully refreshed, obtaining the page address of the target page from the URL data, and splicing the device type data and the page address based on the device address splicing rule corresponding to the device type data to obtain the target address.
In order to better understand the process of the method for pushing the target page, the following describes a flow of the method for pushing the target page with reference to an optional embodiment, but is not limited to the technical solution of the embodiment of the present application.
In this embodiment, a method for pushing a target page is provided, and fig. 3 is a schematic diagram of tag data writing of NFC according to an embodiment of the present application, and as shown in fig. 3, the following steps are specifically performed:
step S301, analyzing the received parameters transmitted by the superior page;
step S302, obtaining a custom parameter custom;
step S303, acquiring traffic type untype data;
step S304, judging whether the untype is empty, if so, executing step S305, otherwise, executing step S306;
s305, writing parameters are lost, and closing the page;
step S306, determining equipment type data and scene type data according to the untype, and analyzing equipment parameters corresponding to the equipment type data and scene parameters corresponding to the scene type data respectively;
step S307, determining whether the parameter of the device type data/scene type data is empty, if yes, performing step S305, and if not, performing step S308;
step S308, generating a writing parameter urlWrite, wherein the writing parameter urlWrite comprises a fixed parameter and a self-defined parameter;
note that if custom is empty, the urlWrite includes only fixed parameters.
Step S309, displaying a write-in page;
step S310, returning to a default page;
step 311, writing the NFC tag when monitoring that the NFC tag is close to the NFC, executing step 312 when the writing is successful, and executing step 313 when the writing is failed;
step S312, displaying a successful page written successfully;
step S313, displaying a failure page of write failure, and executing step S309;
it should be noted that the failure reason corresponding to the write failure may include that the data type of the tag data of NFC is a type that cannot be directly written, the data content is long, the data format is abnormal, and the data identification fails due to too long distance when the data is written.
Wherein, the statement onResume indicates that the NFC data writing is responded preferentially, and if the NFC is not supported or opened, the indication is based on toast; onPause means not responding to NFC write.
In step S314, when the write completion instruction transmitted by the user is received, a default home page is displayed.
In one embodiment, the user can write data according to an agreed data format according to an NFC write page provided by the smart home software or a third party write tool. When a certain device detail page or a device function page (namely, an upper page) clicks and jumps to an NFC write page, the upper page prepares and transfers the written data to the NFC write page. And analyzing the received data in the NFC write-in page, and analyzing a custom field, the service type and a corresponding data field. And then carrying out null judgment on the analyzed data, and prompting error information and closing the write-in page if the data does not meet the requirements. And if the data meets the requirements, splicing the written character strings according to the agreed data format.
Or, the NFC writing method of the mobile phone system may also be directly invoked, if the writing is successful, a success prompt is given, and if the writing is failed, a cause of error is prompted, and the mobile phone system retries.
In this embodiment, for the problem that the user must operate step by step to determine the target page and the same operation procedure is repeated for each determination, a scheme for quickly determining the target page is implemented based on the NFC tag, so that the operation procedure of the user is simplified, the user experience is improved, and the user viscosity is increased.
Further, after the tag data of the NFC is successfully written into the NFC tag, the tag can be used to implement a collision-to-collision execution scene or a collision-to-collision operation of the washing machine. The following is the process of operating and controlling the household appliance by the NFC label touching the mobile phone. As shown in fig. 4, fig. 4 is a schematic diagram of a pushing process of a target page according to an embodiment of the present application; the method comprises the following specific steps:
step S401, reading NFC label data in an NFC label, acquiring a target URL and analyzing a service type;
step S402, determining whether a data field corresponding to the service type is empty, if yes, performing step S403, if no, performing step S405-step S415 under the condition that the service type includes the scene type, and performing step S404-step S422 under the condition that the service type includes the device type;
step S403, label data analysis of NFC fails;
specifically, step S405 to step S415 are as follows:
step S405, judging whether the scene type data is empty, if so, executing step S403, otherwise, executing step S407;
step S407, determining whether the current user is logged in, if so, executing step S409, otherwise, executing step S411;
s409, splicing a target page address corresponding to a target scene according to the URL and the scene type data, and jumping to a target page;
step S411, opening a login page to prompt the user to log in again;
step S413, determining whether the user has logged in, if yes, executing step S409, and if no, executing step S415;
step S415, jumping to a default homepage;
specifically, the steps S404 to S422 are as follows:
step S404, judging whether the equipment type data is empty, if so, executing step S406, otherwise, executing step S408;
step S406, the label data analysis of the NFC fails;
step S408, determining whether the current user is logged in, if so, executing step S410, and if not, executing step S412;
step S410, determining whether user information corresponding to the logged-in user is empty, if yes, performing step S415, and if no, performing step S416;
step S412, prompting the user to log in again, refreshing a preset device list by using target devices corresponding to the device type data, and executing step S414;
step S414, determining whether the device type is successfully refreshed, if so, performing step S416, and if not, performing step S415;
step S416, determining that the device list is refreshed;
step S418, determining whether the user has a target device, if yes, performing step S420, and if no, performing step S422;
step S420, splicing a target page address corresponding to the target equipment according to the URL and the equipment type data, and jumping to a target page;
step S422, entering the device binding process, sending the target device to the mobile terminal of the user in a broadcast mode, and binding the target device to the mobile terminal.
In one embodiment, an NFC tag, to which data has been written, may be used to approach a mobile phone supporting an NFC function, and an NFC identification system carried by the mobile phone reads a packet name written by the NFC tag, and determines a software page corresponding to the packet name, where the determining process includes: and analyzing the NFC label, and determining scene type data or equipment type data according to the analyzed service type field.
And for the scene type data, judging whether the scene data is empty, prompting data analysis failure if the scene data is empty, judging whether the user logs in if the scene data is not empty, logging in and jumping to a default homepage if the user does not log in, and splicing the address of a target page according to the scene type data if the user logs in, jumping to a scene corresponding to the target page and executing the function.
For the device type data, judging whether the device data is null or not, prompting data analysis failure if the device data is null, judging whether a user logs in or not if the device data is not null, logging in and refreshing a device list firstly if the user data is not null, judging whether the current user has the device or not if the user data is received, if the user data is not broadcast, entering a binding process of entering the user binding device according to the broadcast device data, and if the user data is broadcast, splicing a target page address according to the device type data, and jumping to a target page, such as a device detail page.
With the traditional scheme of selecting to the target page step by step, this application is based on the NFC technique, on the basis of providing the label data function of NFC is write in to the key, has realized touching the function that the NFC label alright reach corresponding page directly, has simplified operating procedure greatly, promotes user experience, has improved user's viscosity.
It should be noted that, in this embodiment, only the scene type data and the device type data are taken as an example, but other types of data are not limited, and other types of data may also implement a function that the corresponding page can be directly reached by hitting an NFC tag. The scheme of the embodiment can expand more data types according to requirements, and has good mobility and universality.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method of the embodiments of the present application.
FIG. 5 is a block diagram of a pushing apparatus for a target page according to an embodiment of the present application; as shown in fig. 5, includes:
a reading module 52, configured to read tag data of a near field communication tag NFC in a first mobile terminal, so as to obtain URL data written in the tag data;
among them, near Field Communication (NFC) is an emerging technology, and devices (such as mobile phones) using the NFC technology can exchange data in close proximity to each other, thereby implementing a function of reading tag data according to NFC.
The URL (Uniform Resource Locator) may be understood as page data corresponding to the target page.
An obtaining module 54, configured to parse the URL data to obtain service type data for indicating a target page, where the service type data at least includes one of the following: scene type data, device type data;
and the determining module 56 is configured to determine a target address corresponding to the service type data according to a preset splicing rule, and push a target page corresponding to the target address to a target object.
It should be noted that the preset splicing rule may be, for example, a string splicing rule implemented by the splicing symbol "+", or may include a string splicing rule implemented by the splicing symbol "-", which is not limited in this application.
The target address to be spliced by the preset splicing rule corresponds to the service type data, for example, corresponds to the scene type data, and the target address to be spliced by the preset splicing rule may include an address of a device detail page, an address of a device function, or an address of a device operation, but is not limited thereto. The target address to be spliced by the preset splicing rule may include, but is not limited to, a target scene page corresponding to the scene type address.
Through the device, reading the tag data of a near field communication tag NFC in a first mobile terminal to obtain URL data written in the tag data; analyzing the URL data to obtain service type data used for indicating a target page, wherein the service type data at least comprises one of the following data: scene type data, device type data; and determining a target address corresponding to the service type data according to a preset splicing rule, and pushing a target page corresponding to the target address to a target object, so that the problem of how to push the target page to a user to improve the use feeling of the user in the related art is solved, the step of pushing the target page to the user is simplified, the operation difficulty of pushing the target page to the user is reduced, and the use feeling of the user is improved.
In an exemplary embodiment, the pushing device for the target page further includes an analyzing module, configured to analyze the page data of the target page to obtain a user-defined parameter and a service type of the page data, and determine a fixed parameter corresponding to a first service type of the page data; under the condition that the user-defined parameters and the fixed parameters are determined to pass the inspection, generating writing parameters according to the user-defined parameters and the fixed parameters; generating tag data of the NFC based on the write parameters.
It should be noted that the above process of checking the customized parameter and the fixed parameter includes a null value checking process of the customized parameter and the fixed parameter, that is, under the condition that it is determined that both the customized parameter and the fixed parameter are not null, it may be determined that both the customized parameter and the fixed parameter pass the check.
Optionally, the generating the NFC tag data based on the write parameter includes the following steps: determining a write page for writing the tag data of the NFC; and generating the NFC label data on the write page. For example, taking the device type data of the washing machine as an example, the format of the device type data of the washing machine input by the user on the write page is converted to obtain the NFC tag data in the format supported by the write page.
Optionally, in an embodiment, the tag data of the NFC is written into the write page, and in the case of write failure, the reason of the write failure is sent to the target object, and the target object is prompted to rewrite according to the reason of the write failure. The reason for the write failure at least includes one of the following reasons: the data type of the tag data of the NFC is a type which cannot be directly written, the data content is long, the data format is abnormal, and data identification fails due to the fact that the distance is too far when the data is written.
In an exemplary embodiment, the parsing module is further configured to determine a second service type corresponding to the custom parameter; and under the condition that the first service type is consistent with the second service type, if the self-defined parameter and the fixed parameter are determined not to be empty, respectively determining a first character string of the self-defined parameter and a second character string of the fixed parameter, and splicing the first character string and the second character string to obtain the writing parameter.
In one embodiment, if the user-defined parameters and the fixed parameters are determined to be empty, a message of parameter missing is prompted, and the write page is closed.
In an exemplary embodiment, the determining module 56 is further configured to determine login data in the service type data when it is determined that the service type data is not empty; obtaining a page address of the target page from the URL data under the condition that the login data indicates that the login state in the target page is logged in; and determining the target address by the service type data and the page address based on a scene address splicing rule corresponding to the service type data.
Optionally, in an exemplary embodiment, the determining module 56 is further configured to send login prompting information to a mobile terminal to prompt the target object to log in the target page, when it is determined that the login data indicates that the login state in the target page is not logged in; or sending a default homepage to the target object under the condition that the login data indicate that the login state in the target page is not logged in, wherein the default homepage represents a navigation page corresponding to the target page.
Optionally, in an exemplary embodiment, the determining module 56 is further configured to, when it is determined that the login data in the device type data indicates that the login state in the target page is not logged in, send login prompt information to the target object to prompt the target object to log in the target page, and refresh a device list corresponding to the device type data; and sending a default homepage to the target object under the condition that the device list corresponding to the device type data fails to be refreshed or the target object fails to log in the target page. It should be noted that the service type data includes the device type data.
Further, in an exemplary embodiment, the determining module 56 is further configured to, in a case that it is determined that the login data in the device type data indicates that the login state in the target page is logged in, obtain object information of the target object whose login state is logged in; and under the condition that the object information of the logged target object is determined not to be empty in the login state, if the device list corresponding to the device type data is determined to be successfully refreshed, obtaining the page address of the target page from the URL data, and splicing the device type data and the page address based on the device address splicing rule corresponding to the device type data to obtain the target address.
Embodiments of the present application also provide a storage medium including a stored program, where the program performs any one of the methods described above when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, reading tag data of a near field communication tag NFC in a first mobile terminal to obtain URL data written in the tag data;
s2, analyzing the URL data to obtain service type data used for indicating a target page, wherein the service type data at least comprises one of the following data: scene type data, device type data;
and S3, determining a target address corresponding to the service type data according to a preset splicing rule, and pushing a target page corresponding to the target address to a target object.
Embodiments of the present application further provide an electronic device, comprising a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, reading tag data of a near field communication tag NFC in a first mobile terminal to obtain URL data written in the tag data;
s2, analyzing the URL data to obtain service type data used for indicating a target page, wherein the service type data at least comprises one of the following data: scene type data, device type data;
and S3, determining a target address corresponding to the service type data according to a preset splicing rule, and pushing a target page corresponding to the target address to a target object.
Optionally, in this embodiment, the storage medium may include but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a memory device and executed by a computing device, and in some cases, the steps shown or described may be executed out of order, or separately as integrated circuit modules, or multiple modules or steps thereof may be implemented as a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing is only a preferred embodiment of the present application and it should be noted that, as will be apparent to those skilled in the art, numerous modifications and adaptations can be made without departing from the principles of the present application and such modifications and adaptations are intended to be considered within the scope of the present application.

Claims (10)

1. A method for pushing a target page is characterized by comprising the following steps:
reading tag data of a near field communication tag NFC in a first mobile terminal to obtain URL data written in the tag data;
analyzing the URL data to obtain service type data used for indicating a target page, wherein the service type data at least comprises one of the following data: scene type data, device type data;
and determining a target address corresponding to the service type data according to a preset splicing rule, and pushing a target page corresponding to the target address to a target object.
2. The method for pushing the target page according to claim 1, wherein before reading the tag data of the received nfc tag and obtaining URL data corresponding to the tag data, the method further comprises:
analyzing the page data of the target page to obtain a user-defined parameter and the service type of the page data, and determining a fixed parameter corresponding to a first service type of the page data;
under the condition that the user-defined parameters and the fixed parameters are determined to pass the inspection, generating writing parameters according to the user-defined parameters and the fixed parameters;
generating tag data of the NFC based on the write parameters.
3. The method for pushing the target page according to claim 2, wherein in a case that it is determined that both the custom parameter and the fixed parameter pass the verification, generating a write-in parameter according to the custom parameter and the fixed parameter includes:
determining a second service type corresponding to the self-defined parameter;
and under the condition that the first service type is consistent with the second service type, if the self-defined parameter and the fixed parameter are determined not to be empty, respectively determining a first character string of the self-defined parameter and a second character string of the fixed parameter, and splicing the first character string and the second character string to obtain the writing parameter.
4. The method for pushing the target page according to claim 1, wherein splicing the target address corresponding to the service type data according to a preset splicing rule comprises:
determining login data in the service type data under the condition that the service type data is determined not to be empty;
obtaining a page address of the target page from the URL data under the condition that the login data indicates that the login state in the target page is logged in;
and determining the target address by the service type data and the page address based on a scene address splicing rule corresponding to the service type data.
5. The method for pushing the target page according to claim 4, wherein after determining the login data in the service type data, the method further comprises:
under the condition that the login data indicate that the login state in the target page is not logged in, sending login prompt information to a mobile terminal to prompt the target object to log in the target page;
or sending a default home page to the target object when the login data indicates that the login state in the target page is not logged in, wherein the default home page represents a navigation page corresponding to the target page.
6. The method for pushing the target page according to claim 4, wherein the service type data includes the device type data, and after determining the login data in the service type data, the method further comprises:
under the condition that the login data in the device type data indicate that the login state in the target page is not logged in, sending login prompt information to the target object to prompt the target object to log in the target page and refreshing a device list corresponding to the device type data;
and sending a default homepage to the target object under the condition that the device list corresponding to the device type data fails to be refreshed or the target object fails to log in the target page.
7. The method for pushing the target page according to claim 6, wherein when it is determined that the login data in the device type data indicates that the login status in the target page is not logged in, sending login prompt information to the target object to prompt the target object to log in the target page, and after refreshing a device list corresponding to the device type data, the method further comprises:
under the condition that the login data in the equipment type data indicate that the login state in the target page is logged in, acquiring the object information of the target object with the logged-in state;
and under the condition that the object information of the logged target object is determined not to be empty in the login state, if the device list corresponding to the device type data is determined to be successfully refreshed, obtaining the page address of the target page from the URL data, and splicing the device type data and the page address based on the device address splicing rule corresponding to the device type data to obtain the target address.
8. A device for pushing a target page, comprising:
the reading module is used for reading tag data of a near field communication tag NFC in a first mobile terminal to obtain URL data written in the tag data;
an obtaining module, configured to parse the URL data to obtain service type data for indicating a target page, where the service type data at least includes one of: scene type data, device type data;
and the determining module is used for determining a target address corresponding to the service type data according to a preset splicing rule and pushing a target page corresponding to the target address to a target object.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202211183802.1A 2022-09-27 2022-09-27 Target page pushing method and device, storage medium and electronic device Pending CN115733879A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211183802.1A CN115733879A (en) 2022-09-27 2022-09-27 Target page pushing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211183802.1A CN115733879A (en) 2022-09-27 2022-09-27 Target page pushing method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN115733879A true CN115733879A (en) 2023-03-03

Family

ID=85293347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211183802.1A Pending CN115733879A (en) 2022-09-27 2022-09-27 Target page pushing method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115733879A (en)

Similar Documents

Publication Publication Date Title
US8621571B2 (en) Online service providing system, method, server and mobile device thereof, and computer program product
CN109413515A (en) Apparatus control method, device, mobile terminal and server
CN104424089A (en) Terminal testing method and device
CN114374602A (en) Master control equipment configuration method and device, cloud server and storage medium
CN114896003A (en) Page configuration method and device, storage medium and electronic device
CN115175152A (en) Intelligent device binding method and device, storage medium and electronic device
CN102457777B (en) A kind of TV network problem hierarchical processing method, treatment system and TV
CN115733879A (en) Target page pushing method and device, storage medium and electronic device
US11792269B2 (en) Method for generating application for controlling external electronic device and electronic apparatus for supporting the same
CN115934523A (en) Target test data generation method and device, storage medium and electronic device
CN115687806A (en) Method and device for determining target equipment list, storage medium and electronic device
CN109670062A (en) A kind of three dimensional resource management method and device
CN115174512A (en) Message pushing method and device, storage medium and electronic device
CN115629961A (en) Method and device for determining debugging result, storage medium and electronic device
WO2023202029A1 (en) Tag data adjustment method and apparatus, and storage medium
CN115658178A (en) Method and device for acquiring user behavior dynamic buried point data and storage medium
JP2009130439A (en) Relay apparatus, relay system, relay method, program and recording medium
CN115484119A (en) Device control method and apparatus, storage medium, and electronic apparatus
CN115834435A (en) Interface test method and device, storage medium and electronic device
CN115357446A (en) Device testing method and device, storage medium and electronic device
CN106506292A (en) Playback equipment management method and device
CN115473928A (en) Network connection establishing method and device, storage medium and electronic device
CN115484163A (en) System switching method and device, storage medium and electronic device
CN115794116A (en) Dynamic project publishing method and device, storage medium and electronic device
CN115268962A (en) Program updating method, program updating device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination