Processing method and device of renting service, electronic equipment and storage medium
By running the target applet on the shared device management device and calling the identity identification application, obtaining and sharing the identification information and interactive credentials of the target object, the problem of renting services relying on terminal equipment operations in the existing technology is solved, and a more efficient and convenient renting process is achieved.
Patent Information
- Application Number
- CN202311200960.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-15
- Publication Date
- 2025-03-18
AI Technical Summary
The existing shared device rental method depends on the operation of the terminal device, resulting in the inability to complete the rental service when the terminal device cannot access the mini program, reducing the convenience and processing efficiency of the rental service.
By running the target applet on the management device associated with the shared device, calling the identity identification application to collect the images to be identified, obtaining the identification information and interactive credentials of the target object, and sharing this information with the target applet according to the data sharing strategy, so that the creation of the rental order is completed in a non-login state and the permissions of the shared device are opened.
It realizes that the rental business can be completed without using its own terminal equipment, avoids the rental failure caused by terminal equipment abnormalities, improves the convenience and processing efficiency of rental, and ensures the security and stability of the rental business.
Smart Images

Figure CN119648350A_ABST
Abstract
Description
Background Art
[0002] With the development of information technology, people can rent shared devices in their daily applications, such as renting shared power banks.
[0003] Under the relevant technology, when renting a shared device, the relevant party usually needs to use the terminal device used to log in to the mini program that provides the shared device rental service, and then operate on the mini program to complete the rental service.
[0004] However, the existing shared device rental method relies on the operation of the relevant object on the terminal device. Once the terminal device of the relevant object cannot access the mini-program, the rental service cannot be completed, thereby reducing the convenience of the rental service; and, since the relevant objects using the rental service need to perform a series of operations on the terminal device, the completion time of the rental service is increased to a certain extent, thereby reducing the processing efficiency of the rental service. Summary of the invention
[0005] The embodiments of the present application provide a method, device, electronic device and storage medium for processing a rental business, so as to improve the processing efficiency of the rental business.
[0006] In a first aspect, a method for processing a rental service is proposed, which is applied to a management device associated with a shared device, and includes:
[0007] Running a target applet; the target applet is used to implement the rental business of the shared device;
[0008] According to the data sharing strategy between the identity recognition application and the target applet, the identity recognition application is called, and in response to the identity recognition operation triggered by the target object, an image to be recognized is collected for the target object;
[0009] Using the identity recognition application, based on the image to be recognized, obtaining identification information and interaction credentials of the target object in the target applet environment;
[0010] According to the data sharing strategy, sharing the identification information with the target applet;
[0011] The target mini-program presents a rental details page determined for the target object, and adopts the target mini-program to obtain the interaction credential in response to a confirmation indication triggered by the target object in a non-logged-in state, and after creating a rental order corresponding to the target object based on the interaction credential and the identification information, the target object is given permission to use the shared device.
[0012] In a second aspect, a device for processing a rental service is provided, comprising:
[0013] An operating unit, used for operating a target applet; the target applet is used for implementing the rental service of the shared device;
[0014] A calling unit, configured to call the identity recognition application according to a data sharing policy between the identity recognition application and the target applet, and to collect an image to be recognized for the target object in response to an identity recognition operation triggered by the target object;
[0015] An acquisition unit, configured to acquire identification information and interaction credentials of the target object in the target applet environment by using the identity recognition application according to the image to be recognized;
[0016] A sharing unit, configured to share the identification information with the target applet according to the data sharing policy;
[0017] A presentation unit is used to present a rental details page determined for the target object in the target applet, and adopt the target applet to obtain the interaction credential in response to a confirmation indication triggered by the target object in a non-logged-in state, and after creating a rental order corresponding to the target object based on the interaction credential and the identification information, open the target object to the right to use the shared device.
[0018] Optionally, when calling the identity recognition application according to the data sharing policy between the identity recognition application and the target applet, the calling unit is used to:
[0019] Using a hardware framework application of a mini-program, obtaining an identity identification request sent by the target mini-program by calling a preset interface, and encapsulating the identity identification request into shared request data;
[0020] The hardware framework application of the applet is used to perform an insertion operation of the sharing request data for the request URI in the content providing component, and the sharing request data is sent to the identity recognition application using the content providing component.
[0021] Optionally, when sharing the identification information with the target applet, the sharing unit is used to:
[0022] Using the identity recognition application, for the data URI in the content providing component, an insertion operation of feedback data is performed, wherein the feedback data is obtained by encapsulating the identification information;
[0023] The content providing component is used to notify the target applet of the feedback data, and after completing the data parsing under the hardware framework application of the applet, the identification information obtained by the parsing is transmitted to the target applet.
[0024] Optionally, when presenting the rental details page determined for the target object in the target applet, the presenting unit is configured to:
[0025] After the target applet confirms the business interaction authority of the target object according to the acquired identification information, obtaining a rental details page determined for the target object;
[0026] The rental details page in the target applet is presented, and a global timer and a page timer are started; the timing duration of the global timer is higher than the timing duration of the page timer.
[0027] Optionally, when acquiring the interaction credential in response to a confirmation indication triggered by the target object in a non-logged-in state, the presentation unit is configured to:
[0028] Before the page timer reaches the corresponding timing duration, waiting for a confirmation indication triggered by the target object in a non-logged-in state in the rental page;
[0029] If a confirmation indication triggered by the target object in the rental details page is received before the corresponding timing duration is reached, the page timer is stopped, and the interaction credential is obtained in response to the confirmation indication triggered by the target object.
[0030] Optionally, after presenting the rental details page determined for the target object in the target applet, the presenting unit is further configured to:
[0031] If a confirmation indication triggered by the target object in the rental details page is not received before the corresponding timed duration is reached, then the rental service of the target object is stopped, and the target applet is restarted;
[0032] If a confirmation indication triggered by the target object in the rental details page is received before the corresponding timing duration is reached, and the rental order of the target object is not created before the timing duration of the global timer is reached, control is performed to restart the target applet.
[0033] Optionally, after opening the use right of the shared device to the target object, the presenting unit is further used to:
[0034] The global timer is stopped, and the target applet is controlled to present a specified initial page, and continues to wait for providing a rental service for the next object.
[0035] Optionally, in response to the identity recognition operation triggered by the target object, when collecting the image to be recognized for the target object, the calling unit is used to:
[0036] When a target object is detected to appear in the image acquisition area, determining that the target object triggers an identity recognition operation;
[0037] In response to the identity recognition operation, candidate images are continuously collected for the target object until depth information and image quality of the collected candidate images meet set conditions, and the candidate images that meet the set conditions are determined as images to be recognized.
[0038] Optionally, when the identification information and interaction credentials of the target object in the target applet environment are acquired based on the image to be recognized, the acquisition unit is used to:
[0039] Retrieving a target recognition reference image matching the image to be recognized from the recognition reference images of each business object stored locally, and sending the image to be recognized to a server corresponding to the identity recognition application to retrieve a target recognition reference image matching the image to be recognized;
[0040] If a target recognition reference image matching the image to be recognized is retrieved, identification information and interaction credentials in the target applet environment are obtained for the target business object corresponding to the target recognition object.
[0041] In a third aspect, an electronic device is proposed, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above method when executing the computer program.
[0042] In a fourth aspect, a computer-readable storage medium is proposed, on which a computer program is stored, and the computer program implements the above method when executed by a processor.
[0043] In a fifth aspect, a computer program product is proposed, comprising a computer program, wherein the computer program implements the above method when executed by a processor.
[0044] The beneficial effects of this application are as follows:
[0045] In an embodiment of the present application, the present application proposes a method, device, electronic device and storage medium for processing a rental business, which realizes the processing of the rental business with the help of a management device associated with a shared device, and in the specific business processing process, runs a target applet for realizing the shared device rental business, and then uses an identity recognition application to respond to the identity recognition operation triggered by the target object, and collects an image to be identified for the target object; then, uses the identity recognition application to obtain the identification information and interaction credentials of the target object in the target applet environment based on the image to be identified; then, according to the data sharing strategy between the identity recognition application and the target applet, shares the identification information with the target applet; then presents the rental details page determined for the target object in the target applet, and uses the target applet to respond to the confirmation indication triggered by the non-logged-in target object to obtain the interaction credentials, and after creating a rental order corresponding to the target object based on the interaction credentials and identification information, opens the target object to the use rights of the shared device.
[0046] In this way, by setting up a management device associated with a shared device and using the management device to process the rental business, the relevant object does not need to use its own terminal device to process when implementing the rental business, thus avoiding the failure of the rental business caused by the abnormality of the terminal device of the relevant object itself, and improving the convenience of renting shared devices;
[0047] Moreover, in the process of handling the rental business, by adopting the identity recognition application, based on the image to be recognized collected for the target object, the identification information and interaction credentials of the target object in the target mini-program environment are obtained, which is equivalent to determining that the target object has the authority to rent the shared device in the target mini-program environment, which guarantees the security and stability of the rental business to a certain extent;
[0048] In addition, since a data sharing strategy is configured between the identity recognition application and the target applet, the identification information and interaction credentials obtained by the identity recognition application can be shared with the target applet for use. Therefore, the target applet can create a corresponding rental order when the target object is in a non-logged-in state; the target applet does not need to be restarted repeatedly to serve different objects, which is equivalent to unbinding the rental business from the login status of the object, weakening the necessity of the login status on the target applet for the rental business, which can effectively reduce the processing time of the rental business and improve the processing efficiency of the rental business. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A schematic diagram of possible application scenarios in the embodiments of the present application;
[0050] Figure 2 This is a schematic diagram of the processing process of the rental business in the embodiment of the present application;
[0051] Figure 3 A schematic diagram of the process of configuring a target applet to be in an executable state in an embodiment of the present application;
[0052] Figure 4A This is a schematic diagram of the process of implementing data acquisition with the help of ContentProvider in an embodiment of the present application;
[0053] Figure 4B This is a schematic diagram of processing that can be performed on data in ContentProvider in an embodiment of the present application;
[0054] Figure 4C This is a schematic diagram of the process of implementing data sharing across applications in an embodiment of the present application;
[0055] Figure 5A A schematic diagram of the timing process from the target applet running in WMPF to calling the identity recognition application in an embodiment of the present application;
[0056] Figure 5B This is a schematic diagram of an application mode for managing the entire internal structure of a device in an embodiment of the present application;
[0057] Figure 5C A schematic diagram of the timing process of transmitting identification information to a target applet in an embodiment of the present application;
[0058] Figure 6 This is a schematic diagram of the processing process of the power bank rental business in the embodiment of the present application;
[0059] Figure 7 A schematic diagram of a countdown strategy for renting a power bank in an embodiment of the present application;
[0060] Fig. 8A This is a schematic diagram of the process of identifying a user's palm swiping operation in an embodiment of the present application;
[0061] Figure 8B This is a schematic diagram of the page presentation when the user confirms to rent a power bank in an embodiment of the present application;
[0062] Figure 8C This is a schematic diagram of a page displayed after a power bank pops up in an embodiment of the present application;
[0063] Fig. 9 A schematic diagram of the logical structure of a processing device for a rental service in an embodiment of the present application;
[0064] Fig.10 The present invention is a schematic diagram of the hardware structure of an electronic device to which the present invention is applied. DETAILED DESCRIPTION
[0065] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the technical solution of the present application, rather than all of the embodiments. Based on the embodiments recorded in the application documents, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the technical solution of the present application.
[0066] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the invention described herein can be implemented in sequences other than those illustrated or described herein.
[0067] Some of the terms used in the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.
[0068] Palm recognition: refers to the technology of exchanging palm multimedia information for human identity information, wherein, in a feasible implementation, palm multimedia information specifically refers to palm image.
[0069] 3D camera: Compared with traditional cameras, it adds liveness-related software and hardware, such as depth cameras and infrared cameras. Based on this, liveness detection can be achieved with the help of images collected by 3D cameras, thus ensuring information security.
[0070] Serial Number (SN): also known as a string serial number, which can uniquely identify the identity (ID) of a device.
[0071] Lightweight database (SQLite): refers to a relational database management system with atomicity, consistency, isolation, and durability.
[0072] Mini Program: A mini program is a program developed based on a front-end language (such as JavaScript) that implements services in a Hypertext Markup Language (HTML) page. It is an application that can be used without downloading and installing. It implements the functions of the application and does not require installation or uninstallation. It is more convenient and faster than traditional applications.
[0073] The following is a brief introduction to the design concept of the embodiment of the present application:
[0074] Currently, in the process of renting shared equipment, the relevant parties need to operate on the terminal device used, log in to the mini program that provides shared equipment rental services, and complete the rental business according to the guidance of the mini program.
[0075] However, the existing shared device rental method is highly dependent on the operations of the relevant objects on the terminal devices. Once the terminal devices of the relevant objects cannot access the mini-program, the rental business cannot be completed. In addition, since the relevant objects need to perform a series of operations when renting shared devices, the completion time of the rental business is increased and the processing efficiency of the rental business is reduced.
[0076] For example, taking the rental business of power banks as an example, the relevant parties may face an urgent need for rental during the process of renting power banks. At this time, the power of the terminal devices of the relevant parties may not be able to support the rental operation of the relevant parties, thus causing great inconvenience to the rental of power banks.
[0077] In view of this, the present application proposes a method, device, electronic device and storage medium for processing a rental business, which realizes the processing of the rental business with the help of a management device associated with a shared device, and in the specific business processing process, runs a target applet that realizes the shared device rental business, and then uses an identity recognition application to respond to the identity recognition operation triggered by the target object, and collects an image to be identified for the target object; then, uses the identity recognition application to obtain the identification information and interaction credentials of the target object in the target applet environment based on the image to be identified; then, according to the data sharing strategy between the identity recognition application and the target applet, shares the identification information with the target applet; then presents the rental details page determined for the target object in the target applet, and uses the target applet to respond to the confirmation indication triggered by the non-logged-in target object to obtain the interaction credentials, and after creating a rental order corresponding to the target object based on the interaction credentials and identification information, opens the target object to the right to use the shared device.
[0078] In this way, by setting up a management device associated with a shared device and using the management device to process the rental business, the relevant object does not need to use its own terminal device to process when implementing the rental business, thus avoiding the failure of the rental business caused by the abnormality of the terminal device of the relevant object itself, and improving the convenience of renting shared devices;
[0079] Moreover, in the process of handling the rental business, by adopting the identity recognition application, based on the image to be recognized collected for the target object, the identification information and interaction credentials of the target object in the target mini-program environment are obtained, which is equivalent to determining that the target object has the authority to rent the shared device in the target mini-program environment, which guarantees the security and stability of the rental business to a certain extent;
[0080] In addition, since a data sharing strategy is configured between the identity recognition application and the target applet, the identification information and interaction credentials obtained by the identity recognition application can be shared with the target applet for use, so the target applet can create a corresponding rental order when the target object is in a non-logged-in state; the target applet does not need to be repeatedly restarted to serve different objects, which is equivalent to unbinding the rental business from the login status of the object, weakening the necessity of the login status on the target applet for the rental business, and can effectively reduce the processing time of the rental business and improve the processing efficiency of the rental business. The preferred embodiments of the present application are described below in conjunction with the drawings of the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application, and the embodiments of the present application and the features in the embodiments can be combined with each other if there is no conflict.
[0081] See also Figure 1 As shown, it is a schematic diagram of a possible application scenario in an embodiment of the present application. The schematic diagram of the application scenario includes a management device 110, a target applet server 120, and an identity recognition application server 130.
[0082] The management device 110 can be understood as a merchant (business, B) end device, which has image acquisition function, identity recognition function, and rental business processing function; in a feasible implementation method, it can be transformed from a payment verification device.
[0083] For example, in the scenario of renting a shared power bank, the power bank applet can be combined with the public palm-swiping device on the B side to obtain a management device 110 for the power bank.
[0084] For another example, in the scenario of renting a shared power bank, the power bank applet can be combined with the facial payment verification device on the B side to obtain a management device 110 for the power bank.
[0085] For another example, in the scenario of renting a shared power bank, the power bank applet can be combined with the iris payment verification device on the B side to obtain a management device 110 for the power bank.
[0086] During the processing of the rental business, the management device 110 can interact with the server 120 of the target applet to present the content related to the target applet, and interact with the server 130 of the identity recognition application to obtain the identification information and interaction credentials of the target object in the target applet environment with the help of the identity recognition application; then, with the help of the target applet, based on the identification information and interaction credentials corresponding to the target object, the rental of the shared device by the target object is processed.
[0087] The management device 110 is an electronic device that can run the target applet and the identity recognition application and is integrated with an image acquisition component, wherein the image acquisition component may be a 3D camera.
[0088] The server side 120 of the target mini program can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.
[0089] The server 130 of the identity recognition application can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.
[0090] In the embodiment of the present application, a communication connection can be established between the management device 110 and the server 120 of the target applet, and between the management device 110 and the server 130 of the identity recognition application through a wired network or a wireless network.
[0091] The following describes the processing of the rental business in combination with several possible application scenarios:
[0092] Scenario 1: Renting a shared power bank.
[0093] In the scenario of renting a shared power bank indicated in scenario 1, the management device 110 runs a target applet for implementing the power bank rental business, and uses an identity recognition application to collect an image to be recognized for the user in response to an identity recognition operation triggered by the user; thereafter, the identity recognition application is used to obtain the user's identification information (such as OPENID) and interaction credentials (such as the user's deduction voucher) in the target applet environment based on the image to be recognized, wherein the identity recognition application can be any application that realizes payment verification by recognizing human features, such as a palm payment application, a face payment application, or an iris payment application;
[0094] Furthermore, according to the sharing strategy between the target applet and the identity recognition application, the identification information is shared with the target applet; the target applet is presented with a rental details page determined by the user based on the identification information, and the target applet is used to perform the following operations: in response to a confirmation indication triggered by a non-logged-in user in the rental details page, the interaction credential is obtained, and based on the interaction credential and the identification information, a rental order for the power bank is created for the user, and the user is given the right to use the power bank, thereby triggering the pop-up of the power bank.
[0095] Scenario 2: Renting a shared travel tool.
[0096] In the scenario of renting a shared travel tool indicated in scenario 2, the management device 110 can run a target applet that implements a travel tool rental business, wherein the shared travel tool can be a bicycle, or a car, etc.; then an identity recognition application is used to collect an image to be recognized for the user in response to an identity recognition operation triggered by the user; thereafter, the identity recognition application is used to obtain the user's identification information (such as OPENID) and interaction credentials (such as the user's deduction voucher) in the target applet environment based on the image to be recognized, wherein the identity recognition application can be any application that realizes payment verification by recognizing human features, such as a palm payment application, a face payment application, or an iris payment application;
[0097] Furthermore, according to the sharing strategy between the target mini program and the identity recognition application, the identification information is shared with the target mini program; the rental details page determined by the target mini program for the user based on the identification information is presented, and the target mini program is used to perform the following operations: in response to the confirmation indication triggered by a non-logged-in user in the rental details page, the interaction credential is obtained, and based on the interaction credential and the identification information, a rental order for the user for the shared travel tool is created, and the user is given the right to use the shared travel tool, thereby triggering the unlocking of the shared travel tool.
[0098] In addition, it should be understood that in the specific implementation of the present application, it involves the acquisition of image capture and identification information of relevant objects. When the embodiments recorded in this application are applied to specific products or technologies, it is necessary to obtain the permission or consent of the relevant objects, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions.
[0099] The following is an explanation of the process of leasing business from the perspective of managing equipment, with reference to the accompanying drawings:
[0100] See also Figure 2 As shown, it is a schematic diagram of the processing process of the rental business in the embodiment of the present application. Figure 2 , the process of managing equipment to handle rental business is explained:
[0101] Step 201: The management device runs a target applet, wherein the target applet is used to implement a rental service of a shared device.
[0102] In the embodiment of the present application, before the management device runs the target applet, it is necessary to configure the target applet to be in an executable state.
[0103] Specifically, the management device completes device startup; then, according to the pre-configured operation strategy, the configuration of the mini-program operation environment and the loading of mini-program resources associated with the target mini-program are executed in parallel to make the target mini-program in an operable state.
[0104] It should be noted that in the embodiment of the present application, a strategy of automatically running the mini-program after the device is powered on can be executed, that is, after the management device is powered on, it immediately executes the pre-configured operation strategy to make the target mini-program in an executable state; moreover, in order to realize the operation of the target mini-program, the management device configures the mini-program's hardware framework application (WMPF).
[0105] See also Figure 3 As shown, it is a schematic diagram of the process of configuring the target applet to be in an executable state in an embodiment of the present application, combined with the attached Figure 3 As can be seen from the schematic content, after the management device is turned on, the process of starting the loading page and initializing the (JavaScript, JS) engine is executed in parallel.
[0106] Continue to combine Figure 3 The schematic content is used to explain that in the process of starting the loading page, the management device pre-detects the mini-program startup environment, completes the device initialization, and enters the main page; then, in order to directly and automatically display the loading page, the loading page is started. In the process of parallel execution of the initial JS engine, the management device obtains the application identifier (recorded as APPId) of the target mini-program and the startup path and other information through the background service (such as the server corresponding to the mini-program); then, based on the obtained information, the mini-program resources are downloaded, and then the JS engine is initialized by preloading the mini-program resources.
[0107] Furthermore, continue Figure 3 The illustrated content shows that after starting the loading page and initializing the JS engine, the basic library in the management device is ready, wherein the basic library includes the resources of each application and mini-program; thereafter, after the mini-program container is started, the target mini-program is ready, and at this time, the target mini-program is in an executable state.
[0108] Afterwards, the management device runs the target applet.
[0109] In this way, the management device configures the target applet to be in an executable state after the device is started, so the target applet can be started in a non-login state, and thus the target applet will automatically start after the management device is turned on.
[0110] Step 202: The management device calls the identity recognition application according to the data sharing policy between the identity recognition application and the target applet, responds to the identity recognition operation triggered by the target object, and collects an image to be recognized for the target object.
[0111] In an embodiment of the present application, before implementing the operation of step 202, there are some pre-configurations, including calling a preset interface within the target applet, and implementing a data sharing strategy between the identity identification application and the target applet, wherein the target applet can call the identity identification application to implement identity identification of the target object by calling the preset interface, and obtain feedback of the identification result; the data sharing strategy can act on the processing process of calling the preset interface to implement data sharing across applications.
[0112] For the preset interface, in order to call the identity recognition application and realize the collection of images to be recognized during the running of the target applet, the present application creatively provides a special interface (JSAPI) for the target applet; so that during the running of the target applet, by calling this interface, the identity recognition application can be called to start recognition and obtain the recognition results.
[0113] For example, assuming that the identity recognition application is specifically a palm recognition application, then the corresponding calling method is: wmpf.Channel.invoke('StartPalmDetect', callback).
[0114] In the embodiment of the present application, the interface definition of JSAPI is shown as follows:
[0115]
[0116]
[0117] As for the data sharing strategy between the identity identification application and the target applet, it can be implemented in the following way: based on the sharable data content determined between the target applet and the identity identification application, register the content provider component at the system layer; then in the content provider component, define the request uniform resource identifier (URI) for transmitting data requests between the target applet and the identity identification application, as well as the data URI for transmitting shared data.
[0118] It should be noted that in the process of conceiving and implementing the data sharing strategy, in order to enable the target applet to directly and actively obtain the information identified by the identity identification application, the present application conceives a business communication bridge between the target applet that implements the rental business of shared equipment and the identity identification application that can realize payment verification identification; in order to achieve this goal, it is necessary to build an efficient and secure channel so that the applet framework application (or the applet hardware framework application, such as WMPF) can actively obtain the information identified by the identity identification application, wherein WMPF is an operating environment that allows the hardware to run the applet without the carrier client;
[0119] On this basis, in order to realize the data sharing requirements across APPs, the content provider component (ContentProvider) is configured as a channel for transmitting shared data. In the embodiment of the present application, the management device runs based on the Android system; ContentProvider is a component in Android for sharing data; in the process of realizing data sharing based on ContentProvider, ContentProvider allows an application to provide an interface for other applications to access data, thereby realizing cross-application data sharing.
[0120] From the perspective of underlying processing, in the process of implementing the sharing function with the help of ContentProvider, the implementation of ContentProvider includes the following processes: inheriting the ContentProvider class and implementing the abstract methods therein; registering ContentProvider in the Android system manifest file; in the implementation of ContentProvider, identifying which requests should be processed by the ContentProvider through URI matching, where URI is a uniform resource identifier used to identify the data provided by ContentProvider; in the implementation of ContentProvider, implementing methods such as query(), insert(), update(), and delete(), which are used to handle different request types, such as finding, inserting, updating, and deleting data; in the implementation of ContentProvider, encapsulating data through specific data objects (ContentValues) and returning them to the requester.
[0121] Correspondingly, for the target mini-programs and identity recognition applications that have a data sharing relationship, the party requesting to obtain shared data can access the data in the ContentProvider through a specific access object (ContentResolver), where ContentResolver is a class provided by the Android system, which is used to interact with ContentProvider, and its methods can be used to control operations such as query, insert, update, and delete.
[0122] For example, see Figure 4A As shown, it is a schematic diagram of the process of implementing data acquisition with the help of ContentProvider in an embodiment of the present application. Figure 4A In the data acquisition process shown in the figure, different apps can use ContentResolver to process the data content represented by the URI in ContentProvider.
[0123] For example, see Figure 4B As shown, it is a schematic diagram of the processing that can be performed on the data in the ContentProvider in the embodiment of the present application, combined with the attached Figure 4B From the public information, we can know that the application can perform operations such as insert, query, update, and delete on the data in the ContentProvider.
[0124] In the embodiment of the present application, the request URI is defined as follows:
[0125] content: / / com.xx.wmpf.cli.provider / invokeChannelEvent
[0126] Among them, "content:" is used to identify that the data is managed by ContentProvider; "com.xx.wmpf.cli.provider" is used to uniquely identify this ContentProvider, and external callers can find ContentProvider based on this identifier; "invokeChannelEvent" is used to identify the shared request content.
[0127] In the embodiment of the present application, the defined data URI is as follows:
[0128] content: / / com.xx.wmpf.comm.provider / callbackInvokeChannel
[0129] Among them, "content:" is used to identify that the data is managed by ContentProvider; "com.xx.wmpf.comm.provider" is used to uniquely identify this ContentProvider, and external callers can find ContentProvider based on this identifier; "callbackInvokeChannel" is used to identify the shared data content.
[0130] For example, see Figure 4C As shown, it is a schematic diagram of the process of realizing data sharing across applications in the embodiment of the present application. Figure 4C From the illustrated data sharing process, it can be seen that for data content that can be shared between the identity identification application and the target applet, the identity identification application transmits the data to the ContentProvider and saves it as data identified by the URI in the corresponding data source; then, the ContentProvider transmits the data to the WMPF, wherein WMPF is the operating environment of the target applet, and the data shared with the target applet needs to be parsed by the WMPF before being sent.
[0131] In this way, through ContentProvider, as well as the request URI and data URI defined in ContentProvider, data sharing across applications can be achieved while ensuring the security and privacy of the data; at the same time, through ContentProvider, the application's data can be more easily accessed and utilized by other applications, enhancing the scalability of the application; in this application, a data sharing channel can be established between the target applet and the identity identification application to achieve sharing and interoperability of some data content, providing a basis for obtaining user-related information when the user is not logged in.
[0132] Based on this, when executing step 202, in the process of calling the identity identification application, the management device uses the hardware framework application (WMPF) of the applet to obtain the identity identification request sent by the target applet by calling the preset interface, and encapsulates the identity identification request as sharing request data; then uses the hardware framework application of the applet to perform the insertion operation of the sharing request data for the request URI in the content provider component (ContentProvider), and uses the content provider component to send the sharing request data to the identity identification application, wherein the sharing request data is used to request other applications to share part of the data, and perform processing to obtain data that can be shared.
[0133] See also Figure 5AAs shown, it is a schematic diagram of the timing process from the target applet running in WMPF to the calling of the identity recognition application in an embodiment of the present application; in the case where the identity recognition application is specifically a palm swiping application, after the applet calls the preset interface wmpf.Channel.invoke('StartPalmDetect', callback), there is the following timing process: first, the JS business layer of the target applet triggers the call to wmpf.Channel.invoke('StartPalmDetect', callback), and this call will be passed to WMPF; then, WMPF will encapsulate this call as shared request data, and insert the shared request data into the ContentProvider as the content identified by the "request URI", wherein the shared request data can be regarded as an event, and the encapsulated structure can be roughly divided into three parts: the event name corresponding to the current call, the event unique identifier, and the event parameters, combined with the attached Figure 5A The event name is "StartPalmDetect"; the unique event identifier is "12345"; and the event parameter is type: "deduction". After that, ContentProvider will notify the palm brushing application that an event has been inserted. The palm brushing application can extract information such as the event name based on the inserted event and start identity recognition detection.
[0134] It should be noted that in the embodiment of the present application, since the target applet for implementing the rental business of shared devices can control the shared devices of the entity and can open the use rights of the shared devices to the target object, the target applet is essentially an Internet of Things (IoT) applet; based on this, when the management device uses the IoT applet to carry the rental business of shared devices, there are Figure 5B The overall application model is shown.
[0135] See also Figure 5B As shown, it is a schematic diagram of the application mode of managing the entire internal structure of the device in the embodiment of the present application. Figure 5B From the content shown, it can be seen that in the management device, the hardware framework application (WMPF) of the applet is used as the starting point, and then after starting WMPF, the target applet is opened; thereafter, the identity recognition application is started by calling the preset interface, wherein the identity recognition application provides the core identity recognition capabilities and payment services for the operation of the target applet; then, the target applet in the management device can share the information of the identified target object from the identity recognition application when the object is not logged in, and use it to execute subsequent rental business.
[0136] In this way, the target applet can call the identity recognition application by means of ContentProvider in a data sharing manner, so that after the target applet is running, the identity recognition application can be called to perform identity recognition and verification.
[0137] Furthermore, the management device can call the identity recognition application, respond to the identity recognition operation triggered by the target object, and collect the image to be recognized for the target object.
[0138] Specifically, when the management device detects that the target object appears in the image acquisition area, it can be determined that the target object triggers an identity recognition operation; then, in response to the identity recognition operation, candidate images are continuously acquired for the target object until the depth information and image quality of the acquired candidate images meet the set conditions, and the candidate images that meet the set conditions are determined as images to be identified.
[0139] It should be noted that in the embodiment of the present application, the management device adopts an identity recognition application, and when it detects that the target object appears in the image acquisition area, it is assumed that the target object has triggered the identity recognition operation; moreover, according to actual processing needs, the setting conditions can set the optimal value range for the depth information of the image and the selected parameter indicators for measuring the image quality, so that the final selected image to be identified meets the optimal limited requirements in terms of depth information and image quality.
[0140] In this way, for the image to be identified that the identity recognition application relies on when performing identity recognition, since the depth information and image quality of the image to be identified meet the processing requirements, the subsequent recognition and detection based on the image to be identified are based on high-quality images, which provides a guarantee for the accuracy of recognition.
[0141] Step 203: The management device uses an identity recognition application to obtain identification information and interaction credentials of the target object in the target mini-program environment based on the image to be recognized.
[0142] When executing step 203, the management device uses the identity recognition application to retrieve the target recognition reference image that matches the image to be recognized from the recognition reference images of each business object stored locally, and sends the image to be recognized to the server corresponding to the identity recognition application to retrieve the target recognition reference image that matches the image to be recognized.
[0143] It should be noted that in the embodiment of the present application, the identity recognition application in the management device selects the preferred image to be identified, and then executes local feature retrieval and server-side feature retrieval in parallel, wherein the identification reference image is an image stored for an object with identification information previously registered in the target mini-program environment, and can verify the identity of the object; the identification information can be understood as the ID information in the target mini-program environment, which is used to determine the identity of the target object in the target mini-program environment; the interaction credential can be understood as the deduction credential obtained from the payment level when executing the rental business.
[0144] In addition, in an embodiment of the present application, according to actual processing needs, the management device can periodically obtain data from the server corresponding to the identity recognition application to update the local library features, wherein the local library features include: the identification reference image and identification information of each historical object; in a feasible local library feature update logic, content can be distributed by region, that is, each management device in the same area is distributed with the same content, and the distributed content is determined after summarizing and counting the historical objects that have completed the rental business in the same area.
[0145] Based on this, there are several possible processing procedures according to the different possible search results:
[0146] Processing process 1. Retrieve the matching target recognition reference image.
[0147] In the scenario corresponding to processing process 1, if a target recognition reference image matching the image to be recognized can be retrieved, the identification information and interaction credentials in the target applet environment are obtained for the target business object corresponding to the target recognition object.
[0148] Specifically, during the rental business processing, the identification information is static for a target object; while the interaction credential is dynamic for a target object. When a target object triggers identity recognition at different times, the interaction credential of the target object may be different, and the interaction credential is specifically generated by the server corresponding to the identity authentication application.
[0149] Based on this, in some feasible embodiments, when a target identification reference image can be obtained through local retrieval, the identification information of the target object can be determined according to the correspondence between the identification information of each historical object stored locally and the identification reference image, and then, the server corresponding to the identity recognition application is waited for to send the interaction credential generated for the target object;
[0150] In other feasible embodiments, when the target recognition reference image cannot be obtained through local retrieval, and the target recognition reference image can be obtained through server retrieval, it is possible to wait for the server corresponding to the identity recognition application to send the identification information of the target object and the interaction credentials generated for the target object.
[0151] In this way, by means of the search initiated by the identity recognition application, the identity of the target object can be confirmed based on the feature similarity between the image to be recognized and the recognition reference image, and the identification information and interaction credentials required for processing the rental business can be obtained.
[0152] Process 2: No matching target recognition reference image can be retrieved.
[0153] In the scenario corresponding to processing process 2, if a matching target recognition reference image cannot be retrieved from both the local and server sides, an identity recognition application can be used to guide the target object to register identification information and recognition reference images in the target mini-program environment, so that the server side of the target mini-program can associate and store the corresponding recognition reference images and identification information for the target object.
[0154] Specifically, if the management device uses an identity recognition application and cannot identify the target recognition reference image corresponding to the target object, it can be considered that there is no identification information of the target object under the target applet. In other words, the target object has not previously used the target applet. In this case, the target object can be guided to register the identification information and recognition reference image in the target applet environment, where the area captured in the recognition reference image is determined based on the recognition basis of the identity recognition application.
[0155] For example, if the identity recognition application implements identification verification based on palm prints, then the identification reference image collected for the target object is the palm image.
[0156] It should be noted that, according to actual processing needs, in the process of guiding the target object to register, the target object can be guided to use its own terminal device to access the target applet to complete the registration in the target applet and the collection of identification reference images. This application does not impose any specific restrictions on this.
[0157] In this way, by combining the processing steps involved in processing step 1 and processing step 2, adaptive processing can be performed on various search results.
[0158] Step 204: The management device shares the identification information with the target applet according to the data sharing policy between the identity recognition application and the target applet.
[0159] In an embodiment of the present application, after the identity recognition application in the management device obtains the identification information and interaction credentials of the target object, since it is uncertain whether the target object is sure to rent the shared device, the interaction credentials are not shared with the target applet temporarily, and only the identification information is shared with the target applet.
[0160] Specifically, in the process of sharing identification information with the target mini-program, the management device uses an identity recognition application to perform an insertion operation on data feedback data for the data URI in the content provider component. The data feedback data is encapsulated based on the identification information and interaction credentials. The content provider component is used to notify the target mini-program of the data feedback event, and after completing the data parsing under the hardware framework application of the mini-program, the parsed identification information and interaction credentials are passed to the target mini-program.
[0161] See also Figure 5C As shown, it is a schematic diagram of the timing process of transmitting identification information to the target applet in the embodiment of the present application. Figure 5A On the basis of Figure 5C The illustrated content is explained as follows: when the target object completes the palm swiping and the palm swiping application successfully obtains the OPENID of the target object, the palm swiping application will insert feedback data into the ContentProvider, wherein the inserted feedback data is identified by a data URI; the content encapsulated in the inserted feedback data includes: the event name previously triggered by the target applet, the unique identifier corresponding to the triggered event, and the OPENID of the target object;
[0162] Afterwards, ContentProvider will notify WMPF that feedback data has been inserted. WMPF can then extract information such as the event name based on the inserted feedback data and obtain the OPENID of the target object. Then, WMPF will pass the obtained OPENID to the target applet.
[0163] In this way, the target applet in the management device can obtain the identification information of the target object in the target applet running environment; so that the target applet can reliably obtain the identification information of the target object in the non-logged-in state.
[0164] Step 205: The management device presents the rental details page determined for the target object in the target applet, and uses the target applet to respond to the confirmation indication triggered by the non-logged-in target object, obtain the interaction credentials, and after creating a rental order corresponding to the target object based on the interaction credentials and identification information, open the target object's right to use the shared device.
[0165] In an embodiment of the present application, during the process of the management device presenting the rental details page determined for the target object in the target applet, after the target applet confirms the business interaction authority of the target object based on the obtained identification information, it obtains the rental details page determined for the target object; presents the rental details page in the target applet, and starts the global timer and the page timer, wherein the timing duration of the global timer is higher than the timing duration of the page timer.
[0166] Specifically, after the target mini-program in the management device obtains the identification information of the target object, it can determine the business interaction permissions of the target object based on the identification information of the target object, wherein the business interaction permissions are used to restrict the services that the target object can enjoy in the rental business provided by the target mini-program; based on this, the target mini-program in the management device can obtain the rental details page corresponding to the target object according to the business interaction permissions of the target object, and then present the rental details page to the target object, wherein the rental details page includes a determination component for confirming the rental of a shared device.
[0167] For example, the business interaction permission may describe the membership activation status of the target object and the recharge status of the target object.
[0168] At the same time, in order to improve the processing efficiency of the rental business and avoid wasting too much time on the target object when the target object has no intention of renting, a countdown strategy is introduced.
[0169] In a feasible implementation, the management device may start a global timer and a page timer while presenting the rental details page to the target object, or, in other feasible implementations, the management device may start a global timer and a page timer after determining that the identity authentication of the target object is successful, that is, determining the identification information of the target object, wherein the page timer is used to count down the confirmation operation of the target object in the rental details page, and the global timer is used to count down the completion of the rental.
[0170] For example, the page timer is set to 15S and the global timer is set to 60S. Then, if the target object determines to rent the shared device within 15S, the subsequent process can continue. If the target object does not determine to rent the shared device within 15S, the processing flow of the rental business can be terminated by default.
[0171] In this way, the rental details page presented by the management device is determined in combination with the business processing permissions of the target object in the target applet, ensuring the accuracy of the page content presentation; moreover, with the help of global timers and page timers, the processing time of the rental business can be effectively grasped to avoid wasting too much time for an object with no rental demand, which helps to improve the processing efficiency of the rental business.
[0172] Furthermore, depending on whether the target object is within the time limit of the page timer, a confirmation indication is fed back in the rental details information. There are the following possible processing scenarios:
[0173] Processing scenario 1: The target object feeds back a confirmation indication within the timer duration of the page timer.
[0174] Specifically, the management device waits for a confirmation indication triggered by a non-logged-in target object in the rental page before the page timer reaches a corresponding timing duration; thereafter, if a confirmation indication triggered by the target object in the rental details page is received before the corresponding timing duration is reached, the page timer is stopped, and the interaction credential is obtained in response to the confirmation indication triggered by the target object.
[0175] Specifically, during the countdown of the page timer, the management device always waits for the non-logged-in target object to trigger a confirmation indication in the rental page, and when it is determined that the confirmation indication fed back by the target object is received within the time limit of the page timer, the management device obtains the interaction credential of the target object in the target applet environment, wherein the determination process of the interaction credential is the same as that of the attached Figure 5A and 5C The process of obtaining identification information is similar, and also needs to be processed with the help of ContentProvider. This application will not elaborate on it here.
[0176] It should be noted that in the embodiment of the present application, the target object in the non-logged-in state refers to the state in which the target object is not logged in in the target applet; since the present application realizes the sharing of some data between the identity recognition application and the target applet, it is possible to obtain the identification information and interaction credentials of the target object in the target applet environment when the target object is not logged in to the target applet. In addition, the applet does not have the function of data caching, so in the non-logged-in state, there is no need to worry about information leakage caused by data caching.
[0177] In this way, when the target object can trigger the confirmation operation in the rental details page in time, the target applet in the management device can confirm that the target object has the intention to rent the shared device, and then obtain the corresponding interaction credentials, so that the rental business processing can continue to be completed for the target object, thereby achieving accurate grasp of user needs and improving user experience.
[0178] In particular, if a confirmation indication triggered by the target object in the rental details page is received before the timing duration corresponding to the page timer is reached, and the rental order of the target object is not created before the timing duration of the global timer is reached, the target applet is restarted.
[0179] Specifically, if the target object triggers the confirmation indication in the rental details page in time, but due to various reasons, the rental order of the target object cannot be created before the timing of the global timer is reached, then it means that there may be a certain degree of abnormality inside the target applet, so you can control the restart of the target applet to resolve the abnormality.
[0180] In this way, when the user confirms to rent a shared device but cannot generate a rental order, by controlling the restart of the target applet, it is possible to avoid long-term abnormal operation of the target applet and adjust the operating status of the target applet in time.
[0181] Processing scenario 2: The target object does not provide any confirmation indication within the time limit of the page timer.
[0182] In the processing process corresponding to the second scenario, if the confirmation indication triggered by the target object in the rental details page is not received before the timing duration of the page timer is reached, the rental business of the target object is stopped and the target applet is restarted.
[0183] Specifically, if the target object does not trigger a confirmation indication in the rental details page in a timely manner, it can be considered that the target object has no need to rent a shared device. Moreover, considering that the rental business for the target object has not been completed, the target applet cannot jump out of the processing of the target object; therefore, for the purpose of information security and continuing to process the rental business of other objects, the target applet can be controlled to be restarted.
[0184] In this way, by retargeting the applet, it is possible to promptly jump out of the processing of target objects that do not require leasing, adjust the operating status, and reduce the impact on other objects that have leasing needs.
[0185] Furthermore, after the target object triggers the confirmation indication in a timely manner, under normal circumstances, the management device can respond to the confirmation indication triggered by the non-logged-in target object, obtain the interaction credentials, and after creating a rental order corresponding to the target object based on the interaction credentials and identification information, open the target object's right to use the shared device.
[0186] For example, in the case of renting a power bank, the management device uses a target applet to create a power bank rental order for the target object, and then the power bank can be popped up for the target object to use.
[0187] Afterwards, the management device stops the global timer, controls the target applet to present the specified initial page, and continues to wait for providing the rental service for the next object.
[0188] Specifically, the wx.reLaunch interface can be called in the underlying code of the target applet to control the target applet to close all pages after completing the processing of the rental service for the target object, open the initial page specified in the target applet, and continue to wait for the next object to be provided with the rental service. When waiting for the next object to be provided with the rental service, the configuration involved includes running the target applet and calling the identity recognition application for image acquisition and recognition.
[0189] In this way, since the present application adopts the method of automatically starting the target applet without being logged in, this means that the target applet runtime (Runtime) no longer needs to be forcibly killed to clean up any remaining user login states; this creates the feasibility of realizing the reuse of the applet runtime, so that a applet runtime can handle the leasing business for multiple objects, realizing efficient processing of the leasing business.
[0190] In summary, in the feasible technical solution of the present application, by weakening the login state of the mini-program, the target mini-program without login state is innovatively used in combination with the B-side payment verification device. The process can be retained in the non-login state, and the safe process can be resident, thereby achieving safe reuse of the process, and then the mini-program can be started in seconds. Moreover, OPENID is used as the unique keyword (KEY) associated with the user identity to solve the time-consuming problem caused by the rental of shared equipment with the help of the target mini-program in the B-side scenario.
[0191] In combination with the accompanying drawings, the process of quickly realizing the rental of power banks is explained by taking the scenario of renting power banks without a deposit as an example. In the scenario of renting power banks, the management device is specifically obtained by integrating the functions of the power bank applet, the public palm payment device on the merchant side, and the maintenance equipment of the power bank.
[0192] See also Figure 6 As shown, it is a schematic diagram of the processing process of the power bank rental business in the embodiment of the present application. Figure 6 , explaining the process involved in renting a power bank:
[0193] The overall process can be roughly divided into the following steps:
[0194] Step 601: After the management device is turned on, the power bank rental applet automatically starts and remains resident.
[0195] Specifically, when the management device is turned on, the power bank rental applet will be automatically launched and displayed on the screen.
[0196] Step 602: The palm-swipe payment application in the management device turns on the palm-swipe preferred recognition and waits for the user to swipe their palm.
[0197] Specifically, while step 601 is being executed, the management device starts palm-swiping preferential recognition and waits for the user to swipe his palm.
[0198] Step 603: When the palm payment application in the management device detects that the user has swiped his palm, continuous optimization is performed on the user to obtain an optimized palm image to be identified.
[0199] Step 604: The palm payment application in the management device performs local special identification based on the palm image to be identified.
[0200] Step 605: The palm payment application in the management device performs server-side feature recognition based on the palm image to be recognized.
[0201] The server may specifically be a cloud end.
[0202] It should be noted that step 604 and step 605 are performed in parallel.
[0203] Step 606: The palm payment application in the management device determines that the local feature recognition is successful, hits and obtains the user's OPENID.
[0204] Step 607: The palm-swipe payment application in the management device shares the user's OPENID with the power bank rental applet for business processing.
[0205] Specifically, local feature retrieval will be faster than server-side feature retrieval. After the local feature retrieval is successful, it will hit and obtain the user's OPENID. The device will pass the user's OPENID to the power bank rental applet to complete the business logic processing and continue to wait for the server-side retrieval results.
[0206] It should be noted that in the embodiment of the present application, the server of the palm-swiping payment application can periodically issue a feature library, so that the palm-swiping payment application in the management device can implement the features of the local library features based on the issued feature library, wherein a feature includes a user's palm image and the corresponding OPENID.
[0207] Step 608: The palm-swipe payment application in the management device waits for the server to retrieve the result and obtains the signed encrypted OPENID and the signed encrypted debit voucher.
[0208] Specifically, during data transmission with the server, in order to ensure data security, an encryption key can be agreed upon in advance and encrypted data transmission can be implemented.
[0209] Step 609: When the local feature recognition is unsuccessful but the server recognition is successful, the server of the palm-swiping application returns the recognition result, wherein the recognition result includes the encrypted OPENID after signature and the encrypted withholding voucher after signature encryption.
[0210] In particular, if the server-side feature retrieval fails, it means that the identity of the palm-swiping user cannot be identified, and the user will be guided to enter the registration process to complete the palm-swiping registration and activation.
[0211] Step 610: The palm-swipe payment application in the management device shares the user's OPENID with the power bank rental applet for business processing.
[0212] Step 611: The power bank rental applet in the management device presents the rental details page corresponding to the user.
[0213] Specifically, after the power bank rental applet in the management device obtains the user's OPENID, it can use the OPENID to complete a series of page display-related logic, such as member identity judgment, rental price display, etc., and finally determine the rental details page.
[0214] Step 612: After the user confirms to rent the charging pack, the power bank rental applet in the management device obtains the debit voucher and creates an order based on the debit voucher and OPENID.
[0215] Specifically, after the user clicks the button for confirming the rental of the power bank, the power bank rental applet in the management device will call the interface customized by this application for obtaining the debit voucher of the swiping user, and obtain the debit voucher of the swiping user from the swiping application;
[0216] Then, after obtaining the debit receipt, you can continue to create an order, which is used to complete the rental of the power bank.
[0217] Step 613: The power bank rental applet in the management device controls the pop-up of the power bank.
[0218] Specifically, when an order is successfully created, the power bank rental applet in the management device controls the power bank to pop up, and the user can take out the power bank to complete the rental; moreover, when the user completes the rental, according to actual processing needs, the applet will reset the business status after a certain countdown, waiting for the next user to come and swipe the palm to use the rental.
[0219] It should be noted that steps 601-602 can be understood as the stage of waiting for the user to swipe his palm; steps 603-610 can be understood as the stage of palm swiping recognition for the user; and steps 611-613 can be understood as the user's rental stage.
[0220] For further information, see Figure 7 As shown, it is a schematic diagram of the countdown strategy for renting a power bank in the embodiment of the present application. Figure 7 , the processing process based on the countdown strategy is explained:
[0221] Step 701: The management device waits for the user to swipe his palm.
[0222] Specifically, after the management equipment and power bank rental mini program are ready, it will start waiting for users to come and swipe their palms. This can be considered the starting point of the business, and there is no countdown at this time.
[0223] Step 702: The management device determines that the user's palm swiping is successful.
[0224] Specifically, when the user comes to swipe his palm, the management device swipes the user's palm, determines that the user's palm swiping is successful, and can identify the user's corresponding OPENID.
[0225] Step 703: The management device starts the rental countdown and the full process countdown at the same time.
[0226] Specifically, after the management device determines that the user's palm swipe is successful, a double countdown can be started. The first countdown is a countdown to confirm the rental (corresponding to the function of the page timer) to ensure that the user does not swipe his palm by mistake.
[0227] The second countdown is the full-process countdown (corresponding to the function of the full-process timer), which is used to ensure that the user's rental process has an end.
[0228] Step 704: Determine whether the 15S confirmation rental countdown has been reached. If so, execute step 710; otherwise, execute step 705.
[0229] Step 705: Determine whether the user confirms the rental. If yes, execute step 706; otherwise, execute step 704.
[0230] Step 706: When the user confirms the rental, cancel the rental countdown.
[0231] Specifically, assuming that the rental countdown is set to 15 seconds, then as long as the user triggers the "confirm rental" behavior within 15 seconds, such as clicking the Confirm Rental button, the 15-second countdown will be interrupted.
[0232] Step 707: Determine whether the full process countdown has reached 60S. If so, execute step 710; otherwise, execute step 708.
[0233] Step 708: Determine whether the rental process is completed. If so, execute step 709; otherwise, return to execute step 707.
[0234] Step 709: The management device determines that the lease is completed and cancels the countdown for the entire process.
[0235] Step 710: The process terminates and the power bank rental applet is restarted.
[0236] Specifically, assuming that the rental countdown is set to 15 seconds, if the user fails to trigger confirmation within 15 seconds, the process will be terminated.
[0237] In addition, if the user triggers the rental confirmation within 15 seconds but fails to successfully rent the device within 60 seconds due to reasons such as low credit level, the process will also be terminated.
[0238] Step 711: Present the homepage of the power bank rental applet.
[0239] Specifically, the device will actively restart the power bank rental applet to the specified page, so that the applet can re-trigger the call of wmpf.Channel.invoke('StartPalmDetect', callback).
[0240] In addition, if the user successfully completes the rental, the power bank rental applet will automatically call wx.reLaunch to actively return to the designated page of the power bank rental applet itself, thus avoiding the destruction of the applet Runtime and completing the reuse.
[0241] It should be noted that the interface wx.reLaunch is usually used to reset the page logic, but it cannot eliminate the data related to the login state. For the management device proposed in this application, in the business scenario of this application, since the power bank rental applet is not logged in, there is no need to clean up the relevant data. Then the applet developer calling "wx,.reLaunch" can be considered to be able to completely reset the applet environment, and the applet Runtime naturally does not need to be killed and can continue to be used, which is reuse.
[0242] Step 712: The power bank rental applet in the management device starts identification.
[0243] Thus, based on the above Figure 6 and Figure 7 From the complete palm swiping and power bank rental process, as well as the countdown strategy, it can be seen that the management device proposed in this application supports the power bank rental applet's self-starting capability; moreover, the power bank rental applet running on the management device supports obtaining the user's identity by palm swiping in a non-login state; in addition, combined with the countdown strategy, the ability to reuse the applet runtime is planned and designed, achieving the effect of a single applet runtime serving multiple users. Furthermore, the countdown strategy can be understood as a fallback strategy of this application, which can deal with the situation where users may leave directly after swiping their palms, or leave directly after the palm swiping rental is completed. With the help of the fallback countdown strategy, combined with the call of the wx.reLaunch interface, it is possible to achieve efficient rental of power banks in high-frequency scenarios.
[0244] See also Fig. 8A As shown, it is a schematic diagram of the process of identifying the user's palm swiping operation in the embodiment of the present application. Fig. 8A It can be seen from the illustrated processing process that when no user comes to swipe his palm to use the power bank, the management device is in a waiting state for swiping his palm; afterwards, when the user comes to swipe his palm, the management device collects the user's palm image, and after determining the user's identity based on the palm image, determines that the user's palm swiping is successful, and informs the user with a "beep" prompt sound.
[0245] See also Figure 8B As shown, it is a schematic diagram of the page presentation when the user confirms to rent a power bank in the embodiment of the present application. Figure 8B As shown, the management device has an operable screen next to the palm-swiping area, and there is also a large display screen on which some posters related to power banks can be displayed. In order to enhance the convenience of user operation, the user confirms the rental of the power bank on the operable screen next to the palm-swiping area.
[0246] See also Figure 8C As shown, it is a schematic diagram of the page presented after the power bank pops up in the embodiment of the present application. At the same time as the power bank pops up, a prompt "Please take the power bank away" is presented on the operable screen next to the palm swiping area, and a dynamic image prompting to take the power bank away is presented on the large display screen.
[0247] Based on the same inventive concept, refer to Fig. 9 As shown, it is a logical structure diagram of a processing device for a rental service in an embodiment of the present application. The processing device 900 for a rental service includes an operation unit 901, a calling unit 902, an acquisition unit 903, a sharing unit 904, and a presentation unit 905, wherein:
[0248] The running unit 901 is used to run the target applet; the target applet is used to implement the rental service of the shared device;
[0249] The calling unit 902 is used to call the identity recognition application according to the data sharing policy between the identity recognition application and the target applet, and collect the image to be recognized for the target object in response to the identity recognition operation triggered by the target object;
[0250] The acquisition unit 903 is used to acquire the identification information and interaction credentials of the target object in the target applet environment according to the image to be identified by using the identity recognition application;
[0251] A sharing unit 904, used to share identification information with a target applet according to a data sharing policy;
[0252] The presentation unit 905 is used to present the rental details page determined for the target object in the target applet, and adopt the target applet to respond to the confirmation indication triggered by the non-logged-in target object, obtain the interaction credential, and after creating a rental order corresponding to the target object based on the interaction credential and identification information, open the target object to the right to use the shared device.
[0253] Optionally, before running the target applet, the running unit 901 is further used to:
[0254] Complete the device startup;
[0255] According to the pre-configured operation strategy, the configuration of the mini-program operation environment and the loading of the mini-program resources associated with the target mini-program are executed in parallel, so that the target mini-program is in an operable state.
[0256] Optionally, the data sharing strategy is implemented by the calling unit 902 in the following manner:
[0257] Registering a content provider component at the system level based on the sharable data content determined between the target applet and the identity recognition application;
[0258] In the content providing component, a request URI for transmitting data requests between the target applet and the identity recognition application and a data URI for transmitting shared data are defined.
[0259] Optionally, according to the data sharing policy between the identity recognition application and the target applet, when the identity recognition application is called, the calling unit 902 is used to:
[0260] Using the hardware framework application of the applet, obtaining the identity identification request sent by the target applet by calling the preset interface, and encapsulating the identity identification request into shared request data;
[0261] The hardware framework application using the applet performs an insertion operation of the shared request data for the request URI in the content provider component, and uses the content provider component to send the shared request data to the identity recognition application.
[0262] Optionally, when sharing identification information with a target applet, the sharing unit 904 is used to:
[0263] Using the identity recognition application, for the data URI in the content provider component, an insertion operation of the feedback data is performed, and the feedback data is obtained by encapsulating the identification information;
[0264] The content provider component is used to notify the target applet of feedback data, and after the data is parsed under the hardware framework application of the small city sequence, the parsed identification information is passed to the target applet.
[0265] Optionally, when presenting the rental details page determined for the target object in the target applet, the presenting unit 905 is used to:
[0266] After the target mini program confirms the target object's business interaction authority based on the acquired identification information, the rental details page determined for the target object is obtained;
[0267] The rental details page in the target applet is presented, and the global timer and the page timer are started; the timing duration of the global timer is higher than the timing duration of the page timer.
[0268] Optionally, in response to a confirmation indication triggered by a target object in a non-logged-in state, when acquiring the interaction credential, the presenting unit 905 is configured to:
[0269] Before the page timer reaches the corresponding timing duration, wait for the confirmation indication triggered by the non-logged-in target object in the rental page;
[0270] If a confirmation indication triggered by the target object in the rental details page is received before the corresponding timing duration is reached, the page timer is stopped, and the interaction credential is obtained in response to the confirmation indication triggered by the target object.
[0271] Optionally, after presenting the rental details page determined for the target object in the target applet, the presenting unit 905 is further configured to:
[0272] If the confirmation instruction triggered by the target object in the rental details page is not received before the corresponding timer duration is reached, the rental business of the target object is stopped, and the target applet is restarted;
[0273] If a confirmation indication triggered by the target object in the rental details page is received before the corresponding timing duration is reached, and the rental order of the target object is not created before the timing duration of the global timer is reached, the control restarts the target applet.
[0274] Optionally, after granting the target object access to the shared device, the presenting unit 905 is further configured to:
[0275] Stop the global timer, control the target applet to present the specified initial page, and continue to wait for the next object to provide leasing services.
[0276] Optionally, in response to the identity recognition operation triggered by the target object, when collecting an image to be recognized for the target object, the calling unit 902 is used to:
[0277] When a target object is detected to appear in the image acquisition area, determining that the target object triggers an identity recognition operation;
[0278] In response to the identity recognition operation, candidate images are continuously collected for the target object until the depth information and image quality of the collected candidate images meet the set conditions, and the candidate images that meet the set conditions are determined as images to be recognized.
[0279] Optionally, when the identification information and interaction credentials of the target object in the target mini-program environment are acquired according to the image to be recognized, the acquisition unit 903 is used to:
[0280] Retrieving a target recognition reference image matching the image to be recognized from the recognition reference images of each business object stored locally, and sending the image to be recognized to a server corresponding to the identity recognition application to retrieve a target recognition reference image matching the image to be recognized;
[0281] If a target recognition reference image matching the image to be recognized is retrieved, identification information and interaction credentials in the target applet environment are obtained for the target business object corresponding to the target recognition object.
[0282] After introducing the method and device for processing the rental service according to the exemplary embodiment of the present application, next, an electronic device according to another exemplary embodiment of the present application is introduced.
[0283] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.
[0284] Based on the same inventive concept as the above method embodiment, when the electronic device in the embodiment of the present application corresponds to a management device, refer to Fig.10 As shown, it is a schematic diagram of the hardware composition structure of an electronic device using an embodiment of the present application, and the electronic device 1000 may include at least a processor 1001 and a memory 1002. Among them, the memory 1002 stores a computer program, and when the computer program is executed by the processor 1001, the processor 1001 performs the steps of processing any of the above-mentioned rental services.
[0285] In some possible implementations, the electronic device according to the present application may include at least one processor and at least one memory. The memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of processing the rental business according to various exemplary implementations of the present application described above in this specification. For example, the processor may execute the following steps: Figure 2 Follow the steps shown in .
[0286] Based on the same inventive concept as the above method embodiment, various aspects of the processing of the rental service provided by the present application can also be implemented in the form of a program product, which includes a program code. When the program product is run on an electronic device, the program code is used to enable the electronic device to execute the steps of the processing method of the rental service according to various exemplary embodiments of the present application described above in this specification. For example, the electronic device can execute the following steps: Figure 2 Follow the steps shown in .
[0287] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0288] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0289] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for processing a rental business, characterized in that: Applicable to management devices associated with shared devices, including: Running a target applet; the target applet is used to implement the rental business of the shared device; According to the data sharing strategy between the identity recognition application and the target applet, the identity recognition application is called, and in response to the identity recognition operation triggered by the target object, an image to be recognized is collected for the target object; Using the identity recognition application, based on the image to be recognized, obtaining identification information and interaction credentials of the target object in the target applet environment; According to the data sharing strategy, sharing the identification information with the target applet; The target mini-program presents a rental details page determined for the target object, and adopts the target mini-program to obtain the interaction credential in response to a confirmation indication triggered by the target object in a non-logged-in state, and after creating a rental order corresponding to the target object based on the interaction credential and the identification information, the target object is given permission to use the shared device.
2. The method according to claim 1, characterized in that Before running the target applet, the method further includes: Complete the device startup; According to the pre-configured operation strategy, the configuration of the mini-program operation environment and the loading of the mini-program resources associated with the target mini-program are executed in parallel, so that the target mini-program is in an executable state.
3. The method according to claim 1, characterized in that The data sharing strategy is implemented in the following way: Registering a content providing component at the system level based on the sharable data content determined between the target applet and the identity recognition application; In the content providing component, a request URI for transmitting data requests between the target applet and the identity recognition application and a data URI for transmitting shared data are defined.
4. The method according to claim 3, characterized in that The calling of the identity recognition application according to the data sharing policy between the identity recognition application and the target applet includes: Using a hardware framework application of a mini-program, obtaining an identity identification request sent by the target mini-program by calling a preset interface, and encapsulating the identity identification request into shared request data; The hardware framework application of the applet is used to perform an insertion operation of the sharing request data for the request URI in the content providing component, and the sharing request data is sent to the identity recognition application using the content providing component.
5. The method according to claim 3, characterized in that The sharing of the identification information to the target applet includes: Using the identity recognition application, for the data URI in the content providing component, an insertion operation of feedback data is performed, wherein the feedback data is obtained by encapsulating the identification information; The content providing component is used to notify the target applet of the feedback data, and after completing the data parsing under the hardware framework application of the applet, the identification information obtained by the parsing is transmitted to the target applet.
6. The method according to claim 1, characterized in that The presenting of the rental details page determined for the target object in the target applet includes: After the target applet confirms the business interaction authority of the target object according to the acquired identification information, obtaining a rental details page determined for the target object; The rental details page in the target applet is presented, and a global timer and a page timer are started; the timing duration of the global timer is higher than the timing duration of the page timer.
7. The method according to claim 6, characterized in that The acquiring the interaction credential in response to a confirmation indication triggered by the target object in a non-logged-in state comprises: Before the page timer reaches the corresponding timing duration, waiting for a confirmation indication triggered by the target object in a non-logged-in state in the rental page; If a confirmation indication triggered by the target object in the rental details page is received before the corresponding timing duration is reached, the page timer is stopped, and the interaction credential is obtained in response to the confirmation indication triggered by the target object.
8. The method according to claim 6, characterized in that After presenting the rental details page determined for the target object in the target applet, the method further includes: If a confirmation indication triggered by the target object in the rental details page is not received before the corresponding timed duration is reached, then the rental service of the target object is stopped, and the target applet is restarted; If a confirmation indication triggered by the target object in the rental details page is received before the corresponding timing duration is reached, and the rental order of the target object is not created before the timing duration of the global timer is reached, control is performed to restart the target applet.
9. The method according to claim 6, characterized in that After the target object is given access to the shared device, the method further includes: The global timer is stopped, and the target applet is controlled to present a specified initial page, and continues to wait for providing a rental service for the next object.
10. The method according to any one of claims 1 to 9, characterized in that: The step of collecting an image to be identified for the target object in response to the identity recognition operation triggered by the target object includes: When a target object is detected to appear in the image acquisition area, determining that the target object triggers an identity recognition operation; In response to the identity recognition operation, candidate images are continuously collected for the target object until depth information and image quality of the collected candidate images meet set conditions, and the candidate images that meet the set conditions are determined as images to be recognized.
11. The method according to any one of claims 1 to 9, characterized in that: The acquiring, based on the image to be identified, identification information and interaction credentials of the target object in the target applet environment includes: Retrieving a target recognition reference image matching the image to be recognized from the recognition reference images of each business object stored locally, and sending the image to be recognized to a server corresponding to the identity recognition application to retrieve a target recognition reference image matching the image to be recognized; If a target recognition reference image matching the image to be recognized is retrieved, identification information and interaction credentials in the target applet environment are obtained for the target business object corresponding to the target recognition object.
12. A device for processing a rental service, characterized in that: include: An operating unit, used for operating a target applet; the target applet is used for implementing the rental service of the shared device; A calling unit, configured to call the identity recognition application according to a data sharing policy between the identity recognition application and the target applet, and to collect an image to be recognized for the target object in response to an identity recognition operation triggered by the target object; An acquisition unit, configured to acquire identification information and interaction credentials of the target object in the target applet environment by using the identity recognition application according to the image to be recognized; A sharing unit, configured to share the identification information with the target applet according to the data sharing policy; A presentation unit is used to present a rental details page determined for the target object in the target applet, and adopt the target applet to obtain the interaction credential in response to a confirmation indication triggered by the target object in a non-logged-in state, and after creating a rental order corresponding to the target object based on the interaction credential and the identification information, open the target object to the right to use the shared device.
13. The device according to claim 12, characterized in that Before running the target applet, the running unit is further used to: Complete the device startup; According to the pre-configured operation strategy, the configuration of the mini-program operation environment and the loading of the mini-program resources associated with the target mini-program are executed in parallel, so that the target mini-program is in an executable state.
14. The device according to claim 12, characterized in that The data sharing strategy is implemented by the calling unit in the following manner: Registering a content providing component at the system level based on the sharable data content determined between the target applet and the identity recognition application; In the content providing component, a request URI for transmitting data requests between the target applet and the identity recognition application and a data URI for transmitting shared data are defined.
15. The device according to claim 12, characterized in that When presenting the rental details page determined for the target object in the target applet, the presenting unit is used to: After the target applet confirms the business interaction authority of the target object according to the acquired identification information, obtaining a rental details page determined for the target object; The rental details page in the target applet is presented, and a global timer and a page timer are started; the timing duration of the global timer is higher than the timing duration of the page timer.
16. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 11 is implemented.
17. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.
18. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.
Citation Information
Cited By
Information interaction method
CN120655391A
A method and system for secure erasure of data in IT equipment recycling
CN122526500A