





技术领域technical field
本公开涉及互联网技术领域,特别涉及一种资源核销方法、装置、终端及存储介质。The present disclosure relates to the field of Internet technologies, and in particular, to a resource write-off method, device, terminal and storage medium.
背景技术Background technique
随着互联网技术的发展,互联网平台关联的商家越来越多;并且,为了吸引客户,商家会提供团购或者代金券等优惠活动。相应的,用户可以提前在互联网平台中进行团购或者获取代金券,然后到店获取团购的物品或者使用该代金券。With the development of Internet technology, more and more merchants are associated with Internet platforms; and, in order to attract customers, merchants will provide preferential activities such as group purchases or vouchers. Correspondingly, users can make group purchases or obtain vouchers on the Internet platform in advance, and then go to the store to obtain the group-purchased items or use the vouchers.
相关技术中,用户到店后,通过手机打开互联网平台对应的应用程序,然后找到团购或者代金券对应的订单信息,触发终端展示该订单信息,以供商家核销对该订单信息中的资源进行核销。In the related art, after the user arrives at the store, the user opens the application program corresponding to the Internet platform through the mobile phone, and then finds the order information corresponding to the group purchase or the voucher, and triggers the terminal to display the order information, so that the merchant can write off the resources in the order information. write off.
上述技术中,用户需要通过一系列操作才能向商家展示该订单信息,从而导致资源核销的效率低。In the above technology, the user needs to perform a series of operations to display the order information to the merchant, resulting in low efficiency of resource write-off.
发明内容SUMMARY OF THE INVENTION
本公开实施例提供了一种页面渲染方法、装置、终端及存储介质,提高了页面组件的通用性。该技术方案如下:Embodiments of the present disclosure provide a page rendering method, device, terminal, and storage medium, which improve the versatility of page components. The technical solution is as follows:
一方面,提供了一种页面渲染方法,所述方法包括:In one aspect, a page rendering method is provided, the method comprising:
响应于目标账单的资源转移操作,获取目标用户的人脸图像,所述目标账单为在目标商家获取物品生成的账单;Acquiring the face image of the target user in response to the resource transfer operation of the target bill, where the target bill is a bill generated by acquiring items at the target merchant;
根据所述人脸图像,确定至少一个第一资源,所述至少一个第一资源为目标账号通过互联网平台在所述目标商家获取的资源,所述目标账号为所述目标用户在所述互联网平台注册的账号;According to the face image, at least one first resource is determined, the at least one first resource is the resource obtained by the target account at the target merchant through the Internet platform, and the target account is the target user on the Internet platform registered account;
从所述至少一个第一资源中,获取用于抵扣所述目标账单的目标资源;obtaining, from the at least one first resource, a target resource for deducting the target bill;
通过核销所述目标资源,对所述目标账单的资源数值进行抵扣。By writing off the target resource, the resource value of the target bill is deducted.
在一些实施例中,所述第一资源的数量为多个,且多个第一资源为多种类型的资源;所述从所述至少一个第一资源中,获取用于抵扣所述目标账单的目标资源,包括:In some embodiments, the number of the first resources is multiple, and the multiple first resources are multiple types of resources; the obtaining from the at least one first resource is used to deduct the target Target resources for billing, including:
根据每个第一资源的类型,确定每个第一资源被核销的优先级;According to the type of each first resource, determine the priority of each first resource to be written off;
根据每个第一资源被核销的优先级,从多个第一资源中选择优先级满足条件的至少一个第一资源;According to the written-off priority of each first resource, at least one first resource whose priority satisfies the condition is selected from the plurality of first resources;
从所述至少一个第一资源中,获取用于抵扣所述目标账单的目标资源。From the at least one first resource, obtain a target resource for deducting the target bill.
在一些实施例中,所述至少一个第一资源均为第一类型的资源,所述第一类型的资源用于通过所述第一资源在所述目标商家中获取第一物品明细的物品;In some embodiments, the at least one first resource is a resource of a first type, and the resource of the first type is used to obtain the item with the first item details in the target merchant through the first resource;
所述从所述至少一个第一资源中,获取用于抵扣所述目标账单的目标资源,包括:The acquiring, from the at least one first resource, the target resource for deducting the target bill includes:
对于每个第一资源,确定所述第一资源对应的第一物品明细;For each first resource, determine the first item details corresponding to the first resource;
根据所述目标账单的第二物品明细以及所述每个第一资源对应的第一物品明细,从所述至少一个资源中确定物品明细与所述第二物品明细匹配的至少一个目标资源。According to the second item detail of the target bill and the first item detail corresponding to each first resource, at least one target resource whose item detail matches the second item detail is determined from the at least one resource.
在一些实施例中,所述至少一个第一资源均为第二类型的资源,所述第二类型的资源用于通过所述第一资源在所述目标商家中获取第一资源数值的物品;In some embodiments, the at least one first resource is a second type of resource, and the second type of resource is used to obtain an item with a first resource value from the target merchant through the first resource;
所述从所述至少一个第一资源中,获取用于抵扣所述目标账单的目标资源,包括:The acquiring, from the at least one first resource, the target resource for deducting the target bill includes:
对于每个第一资源,确定所述第一资源对应的第一资源数值;For each first resource, determining a first resource value corresponding to the first resource;
根据所述目标账单对应的第二资源数值以及所述每个第一资源对应的第一资源数值,从所述至少一个资源中确定资源数值与所述第二资源数值匹配的至少一个目标资源。According to the second resource value corresponding to the target bill and the first resource value corresponding to each first resource, at least one target resource whose resource value matches the second resource value is determined from the at least one resource.
在一些实施例中,所述根据每个第一资源的类型,确定每个第一资源被核销的优先级,包括:In some embodiments, determining the priority of each first resource to be written off according to the type of each first resource includes:
对于每个第一资源,根据所述第一资源的类型,确定所述第一资源被使用的广泛度,确定所述广泛度匹配的优先级,所述优先级与所述广泛度呈负相关;或者,For each first resource, according to the type of the first resource, determine the extent to which the first resource is used, and determine a priority for matching the extent, and the priority is negatively correlated with the extent ;or,
对于每个第一资源,根据所述第一资源的类型,确定所述第一资源被使用的广泛度,根据所述广泛度和所述第一资源的剩余有效时长,确定所述第一资源被核销的优先级,所述优先级分别与所述广泛度和所述剩余有效时长均呈负相关。For each first resource, determine the extent to which the first resource is used according to the type of the first resource, and determine the first resource according to the extent and the remaining valid duration of the first resource The priority of being written off, where the priority is negatively correlated with both the breadth and the remaining valid duration.
在一些实施例中,所述根据所述人脸图像,确定至少一个第一资源,包括:In some embodiments, the determining at least one first resource according to the face image includes:
根据所述人脸图像,确定所述目标账号;determining the target account according to the face image;
根据所述目标账号,确定所述目标账号的至少一个第二资源,所述第二资源为所述目标账号通过所述互联网平台获取的,且未核销的资源;According to the target account, at least one second resource of the target account is determined, and the second resource is a resource obtained by the target account through the Internet platform and has not been written off;
根据所述目标商家的商家标识,从所述至少一个第二资源中确定所述至少一个第一资源。The at least one first resource is determined from the at least one second resource according to the merchant identification of the target merchant.
在一些实施例中,所述根据所述人脸图像,确定所述目标账号,包括:In some embodiments, determining the target account according to the face image includes:
根据所述人脸图像,识别出所述目标用户的身份信息,基于所述身份信息,从身份信息和用户账号的对应关系中确定所述目标账号;或者,Identify the identity information of the target user according to the face image, and determine the target account from the correspondence between the identity information and the user account based on the identity information; or,
基于所述人脸图像,从人脸图像和用户账号的对应关系中确定所述目标账号。Based on the face image, the target account is determined from the correspondence between the face image and the user account.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
响应于物品选择操作,展示选择界面,所述选择界面包括至少一个待选择的物品;In response to the item selection operation, displaying a selection interface, the selection interface including at least one item to be selected;
获取基于所述选择界面被选择的物品;obtaining the item selected based on the selection interface;
响应于基于所述被选择的物品触发的确认操作,生成所述被选择的物品对应的目标账单,且确定接收到所述资源转移操作。In response to a confirmation operation triggered based on the selected item, a target bill corresponding to the selected item is generated, and it is determined that the resource transfer operation is received.
在一些实施例中,所述获取目标用户的人脸图像,包括:In some embodiments, the acquiring the face image of the target user includes:
调用拍摄控件,通过所述拍摄控件采集所述目标用户的人脸图像;或者,calling the shooting control, and collecting the face image of the target user through the shooting control; or,
在所述目标用户基于所述选择界面选择物品的过程中,采集包含所述目标用户的视频画面,从所述视频画面中获取所述目标用户的人脸图像。During the process that the target user selects an item based on the selection interface, a video image including the target user is collected, and a face image of the target user is acquired from the video image.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
在所述目标商家准备好所述目标账单中的物品之后,展示资源转移界面,所述资源转移界面中显示所述目标账单的账单标识和资源转移选项;After the target merchant prepares the items in the target bill, a resource transfer interface is displayed, and the resource transfer interface displays the bill identifier and resource transfer options of the target bill;
响应于所述资源转移选项被触发,确定接收到所述目标账单的资源转移操作。In response to the resource transfer option being triggered, a resource transfer operation for which the target bill is received is determined.
在一些实施例中,所述通过核销所述目标资源,对所述目标账单的资源数值进行抵扣,包括:In some embodiments, deducting the resource value of the target bill by writing off the target resource includes:
将所述目标资源的状态设置为已核销,且将所述目标账单的状态设置为已进行资源数值转移。The status of the target resource is set as written off, and the status of the target bill is set as resource value transfer has been made.
在一些实施例中,所述通过核销所述目标资源,对所述目标账单的资源数值进行抵扣之前,所述方法还包括:In some embodiments, before deducting the resource value of the target bill by writing off the target resource, the method further includes:
展示核销确认界面,所述核销确认界面显示有所述目标资源的订单信息,用于对所述订单信息进行确认;Displaying a write-off confirmation interface, where the write-off confirmation interface displays the order information of the target resource for confirming the order information;
响应于基于所述订单信息触发的确认操作,执行所述通过核销所述目标资源,对所述目标账单的资源数值进行抵扣的步骤。In response to the confirmation operation triggered based on the order information, the step of deducting the resource value of the target bill by writing off the target resource is performed.
另一方面,提供了一种资源核销装置,所述装置包括:In another aspect, a resource write-off device is provided, the device comprising:
第一获取模块,用于响应于目标账单的资源转移操作,获取目标用户的人脸图像,所述目标账单为在目标商家获取物品生成的账单;a first obtaining module, configured to obtain a face image of a target user in response to a resource transfer operation of a target bill, where the target bill is a bill generated by obtaining items from a target merchant;
第一确定模块,用于根据所述人脸图像,确定至少一个第一资源,所述至少一个第一资源为目标账号通过互联网平台在所述目标商家获取的资源,所述目标账号为所述目标用户在所述互联网平台注册的账号;A first determination module, configured to determine at least one first resource according to the face image, the at least one first resource is a resource obtained by a target account from the target merchant through an Internet platform, and the target account is the The account registered by the target user on the Internet platform;
第二获取模块,用于从所述至少一个第一资源中,获取用于抵扣所述目标账单的目标资源;a second obtaining module, configured to obtain, from the at least one first resource, a target resource for deducting the target bill;
核销模块,用于通过核销所述目标资源,对所述目标账单的资源数值进行抵扣。The write-off module is configured to deduct the resource value of the target bill by writing off the target resource.
在一些实施例中,所述第一资源的数量为多个,且多个第一资源为多种类型的资源;所述第二获取模块包括:In some embodiments, the number of the first resources is multiple, and the multiple first resources are multiple types of resources; the second obtaining module includes:
第一确定单元,用于根据每个第一资源的类型,确定每个第一资源被核销的优先级;a first determining unit, configured to determine, according to the type of each first resource, the priority of each first resource being written off;
选择单元,用于根据每个第一资源被核销的优先级,从多个第一资源中选择优先级满足条件的至少一个第一资源;a selection unit, configured to select at least one first resource whose priority satisfies a condition from a plurality of first resources according to the priority of each first resource being written off;
获取单元,用于从所述至少一个第一资源中,获取用于抵扣所述目标账单的目标资源。An obtaining unit, configured to obtain, from the at least one first resource, a target resource for deducting the target bill.
在一些实施例中,其特征在于,所述至少一个第一资源均为第一类型的资源,所述第一类型的资源用于通过所述第一资源在所述目标商家中获取第一物品明细的物品;In some embodiments, the at least one first resource is a resource of a first type, and the resource of the first type is used to obtain a first item from the target merchant through the first resource detailed items;
所述第二获取模块包括:The second acquisition module includes:
第二确定单元,用于对于每个第一资源,确定所述第一资源对应的第一物品明细;a second determining unit, configured to, for each first resource, determine the first item details corresponding to the first resource;
第三确定单元,用于根据所述目标账单的第二物品明细以及所述每个第一资源对应的第一物品明细,从所述至少一个资源中确定物品明细与所述第二物品明细匹配的至少一个目标资源。a third determining unit, configured to determine that the item details match the second item details from the at least one resource according to the second item details of the target bill and the first item details corresponding to each first resource of at least one target resource.
在一些实施例中,所述至少一个第一资源均为第二类型的资源,所述第二类型的资源用于通过所述第一资源在所述目标商家中获取第一资源数值的物品;In some embodiments, the at least one first resource is a second type of resource, and the second type of resource is used to obtain an item with a first resource value from the target merchant through the first resource;
所述第二获取模块包括:The second acquisition module includes:
第四确定单元,用于对于每个第一资源,确定所述第一资源对应的第一资源数值;a fourth determining unit, configured to determine, for each first resource, a first resource value corresponding to the first resource;
第五确定单元,用于根据所述目标账单对应的第二资源数值以及所述每个第一资源对应的第一资源数值,从所述至少一个资源中确定资源数值与所述第二资源数值匹配的至少一个目标资源。A fifth determining unit, configured to determine the resource value and the second resource value from the at least one resource according to the second resource value corresponding to the target bill and the first resource value corresponding to each first resource At least one target resource that matches.
在一些实施例中,所述第一确定单元,用于对于每个第一资源,根据所述第一资源的类型,确定所述第一资源被使用的广泛度,确定所述广泛度匹配的优先级,所述优先级与所述广泛度呈负相关;或者,In some embodiments, the first determining unit is configured to, for each first resource, determine the extent to which the first resource is used according to the type of the first resource, and determine the extent to which the extent matches. priority, which is inversely related to the breadth; or,
所述第一确定单元,用于对于每个第一资源,根据所述第一资源的类型,确定所述第一资源被使用的广泛度,根据所述广泛度和所述第一资源的剩余有效时长,确定所述第一资源被核销的优先级,所述优先级分别与所述广泛度和所述剩余有效时长均呈负相关。The first determining unit is configured to, for each first resource, determine the extent to which the first resource is used according to the type of the first resource, and determine the extent to which the first resource is used according to the extent and the remainder of the first resource The validity period determines the priority of the first resource to be written off, and the priority is negatively correlated with the breadth and the remaining validity period respectively.
在一些实施例中,所述第一确定模块包括:In some embodiments, the first determining module includes:
第六确定单元,用于根据所述人脸图像,确定所述目标账号;a sixth determining unit, configured to determine the target account according to the face image;
第七确定单元,用于根据所述目标账号,确定所述目标账号的至少一个第二资源,所述第二资源为所述目标账号通过所述互联网平台获取的,且未核销的资源;A seventh determining unit, configured to determine at least one second resource of the target account according to the target account, where the second resource is a resource that is acquired by the target account through the Internet platform and has not been written off;
第八确定单元,用于根据所述目标商家的商家标识,从所述至少一个第二资源中确定所述至少一个第一资源。An eighth determining unit, configured to determine the at least one first resource from the at least one second resource according to the merchant identifier of the target merchant.
在一些实施例中,所述第六确定单元,用于根据所述人脸图像,识别出所述目标用户的身份信息,基于所述身份信息,从身份信息和用户账号的对应关系中确定所述目标账号;或者,In some embodiments, the sixth determining unit is configured to identify the identity information of the target user according to the face image, and based on the identity information, determine the corresponding relationship between the identity information and the user account. the target account; or,
所述第六确定单元,用于基于所述人脸图像,从人脸图像和用户账号的对应关系中确定所述目标账号。The sixth determining unit is configured to determine the target account from the correspondence between the face image and the user account based on the face image.
在一些实施例中,所述装置还包括:In some embodiments, the apparatus further includes:
第一展示模块,用于响应于物品选择操作,展示选择界面,所述选择界面包括至少一个待选择的物品;a first display module, configured to display a selection interface in response to an item selection operation, the selection interface including at least one item to be selected;
第三获取模块,用于获取基于所述选择界面被选择的物品;a third acquiring module, configured to acquire the item selected based on the selection interface;
生成模块,用于响应于基于所述被选择的物品触发的确认操作,生成所述被选择的物品对应的目标账单,且确定接收到所述资源转移操作。A generating module, configured to generate a target bill corresponding to the selected item in response to a confirmation operation triggered based on the selected item, and determine that the resource transfer operation is received.
在一些实施例中,所述第一获取模块包括:In some embodiments, the first obtaining module includes:
调用单元,用于调用拍摄控件,通过所述拍摄控件采集所述目标用户的人脸图像;或者,a calling unit, configured to call a shooting control, and collect the face image of the target user through the shooting control; or,
采集单元,用于在所述目标用户基于所述选择界面选择物品的过程中,采集包含所述目标用户的视频画面,从所述视频画面中获取所述目标用户的人脸图像。The collection unit is configured to collect a video picture including the target user during the process of the target user selecting an item based on the selection interface, and obtain a face image of the target user from the video picture.
在一些实施例中,所述装置还包括:In some embodiments, the apparatus further includes:
第二展示模块,用于在所述目标商家准备好所述目标账单中的物品之后,展示资源转移界面,所述资源转移界面中显示所述目标账单的账单标识和资源转移选项;a second display module, configured to display a resource transfer interface after the target merchant prepares the items in the target bill, and the resource transfer interface displays the bill identifier and resource transfer options of the target bill;
第二确定模块,用于响应于所述资源转移选项被触发,确定接收到所述目标账单的资源转移操作。A second determining module, configured to determine, in response to the resource transfer option being triggered, a resource transfer operation that receives the target bill.
在一些实施例中,所述核销模块,用于将所述目标资源的状态设置为已核销,且将所述目标账单的状态设置为已进行资源数值转移。In some embodiments, the write-off module is configured to set the state of the target resource to be written off, and to set the state of the target bill to be that the resource value has been transferred.
在一些实施例中,所述装置还包括:In some embodiments, the apparatus further includes:
第三展示模块,用于展示核销确认界面,所述核销确认界面显示有所述目标资源的订单信息,用于对所述订单信息进行确认;a third display module, configured to display a write-off confirmation interface, where the write-off confirmation interface displays the order information of the target resource, and is used for confirming the order information;
所述核销模块,还用于响应于基于所述订单信息触发的确认操作,通过核销所述目标资源,对所述目标账单的资源数值进行抵扣。The write-off module is further configured to deduct the resource value of the target bill by writing off the target resource in response to a confirmation operation triggered based on the order information.
另一方面,提供了一种终端,所述终端包括一个或多个处理器和一个或多个存储器,所述一个或多个存储器中存储有至少一条程序代码,所述至少一条程序代码由所述一个或多个处理器加载并执行以实现如本公开实施例的方法实施例中所述的资源核销方法所执行的操作。In another aspect, a terminal is provided, the terminal includes one or more processors and one or more memories, the one or more memories store at least one piece of program code, the at least one piece of program code is The one or more processors are loaded and executed to implement the operations performed by the resource write-off method described in the method embodiment of the embodiment of the present disclosure.
另一方面,提供了一种非临时性计算机可读存储介质,所述存储介质中存储有至少一条程序代码,所述至少一条程序代码由处理器加载并执行以实现如本公开实施例的方法实施例中所述的资源核销方法所执行的操作。In another aspect, a non-transitory computer-readable storage medium is provided, the storage medium stores at least one piece of program code, the at least one piece of program code is loaded and executed by a processor to implement the method according to the embodiment of the present disclosure Operations performed by the resource write-off method described in the embodiment.
另一方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。终端的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该终端执行上述方面的各种可选实现方式中提供的资源核销方法。In another aspect, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the terminal reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the terminal executes the resource write-off method provided in various optional implementation manners of the foregoing aspects.
在本公开实施例中,通过在对目标账单进行资源转移的过程中,直接通过获取目标用户的人脸图像来确定该目标用户对应的目标账号的至少一个第一资源,从而直接从该至少一个第一资源中获取用于核销该目标账单的目标资源,这样只需要扫描用户的人脸图像,用户无需通过一系列操作向商家展示该订单信息,从而提高了目标账单的核销效率。In the embodiment of the present disclosure, in the process of transferring resources to the target bill, at least one first resource of the target account corresponding to the target user is determined by directly acquiring the face image of the target user, so that the at least one first resource is directly obtained from the at least one target account. The target resource for writing off the target bill is obtained from the first resource, so that only the face image of the user needs to be scanned, and the user does not need to display the order information to the merchant through a series of operations, thereby improving the writing-off efficiency of the target bill.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是根据一示例性实施例示出的一种资源核销方法所涉及的系统架构图;Fig. 1 is a system architecture diagram involved in a resource write-off method according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种资源核销方法流程图;2 is a flowchart of a method for writing off resources according to an exemplary embodiment;
图3是根据一示例性实施例示出的一种资源核销方法流程图;3 is a flowchart of a method for writing off resources according to an exemplary embodiment;
图4是根据一示例性实施例示出的一种资源核销方法流程图;4 is a flowchart of a method for writing off resources according to an exemplary embodiment;
图5是根据一示例性实施例示出的一种资源核销装置的框图;5 is a block diagram of a resource write-off device according to an exemplary embodiment;
图6是根据一示例性实施例示出的一种终端的结构框图。Fig. 6 is a structural block diagram of a terminal according to an exemplary embodiment.
具体实施方式Detailed ways
为使本公开的目的、技术方案和优点更加清楚,下面将结合附图对本公开实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present disclosure clearer, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。另外,本公开所涉及的账单信息和用户信息可以为经用户授权或者经过各方充分授权的账单信息和用户信息。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims. In addition, the billing information and user information involved in the present disclosure may be billing information and user information authorized by the user or fully authorized by all parties.
图1是根据一示例性实施例示出的一种资源核销方法所涉及的系统架构图。该系统架构图包括第一终端101、第二终端102和服务器103。其中,第一终端101和第二终端102都可以与服务器103之间通过无线网络连接。FIG. 1 is a system architecture diagram involved in a resource write-off method according to an exemplary embodiment. The system architecture diagram includes a
其中,第一终端101为资源转移过程中商家所使用的终端。该第一终端101用于生成目标账单,根据目标账单收取用户的资源数值。第二终端102为用户使用的终端,第二终端102中安装目标应用程序。该目标应用程序为外卖应用程序、团购应用程序、购物应用程序、支付应用程序、社交应用程序或银行客户端应用程序等中的一个。相应的,服务器103可以为目标应用程序的后台服务器103。第二终端102通过该目标应用程序可以向商家账号转移资源。例如,用户通过第二终端102在目标商家获取物品时,需要通过第二终端102向该商家账号转移该物品匹配的资源数值。当第二终端102向商家账号转移资源数值时,服务器103会获取本次资源转移的目标账单,根据该目标账单,更新商家账号和当前用户的资源数值。其中,第二终端102可以提前从互联网平台上获取资源,在对目标账单进行核销时,使用事先获取的资源直接抵扣。The
该商家可以为实体商家店铺,也可以为线上店铺。并且,该商家为餐饮行业、酒店住宿行业、电影演出行业的商家等,在本公开实施例中,对此不做具体限定。该资源为用于换取物品的虚拟或实体资源。The merchant can be a physical merchant store or an online store. In addition, the merchant is a merchant in the catering industry, hotel accommodation industry, movie performance industry, etc., which is not specifically limited in the embodiments of the present disclosure. The resource is a virtual or physical resource used in exchange for an item.
第一终端101和第二终端102可以为相同的终端也可以为不同的终端,该第一终端101和第二终端102均可以为手机、电脑、平板电脑或可穿戴设备等。该服务器103可以为一个服务器,也可以为多个服务器组成的服务器集群,还可以为云服务器等。在本公开实施例中,对此均不作具体限定。The
图2是根据一示例性实施例示出的一种资源核销方法流程图,如图2所示,该资源核销方法包括以下步骤:FIG. 2 is a flowchart of a method for writing off resources according to an exemplary embodiment. As shown in FIG. 2 , the method for writing off resources includes the following steps:
步骤201:响应于目标账单的资源转移操作,获取目标用户的人脸图像,该目标账单为在目标商家获取物品生成的账单。Step 201: Acquire a face image of a target user in response to a resource transfer operation of a target bill, where the target bill is a bill generated by acquiring an item at a target merchant.
步骤202:根据该人脸图像,确定至少一个第一资源,该至少一个第一资源为目标账号通过互联网平台在该目标商家获取的资源,该目标账号为该目标用户在该互联网平台注册的账号。Step 202: Determine at least one first resource according to the face image, the at least one first resource is the resource obtained by the target account at the target merchant through the Internet platform, and the target account is the account registered by the target user on the Internet platform .
步骤203:从该至少一个第一资源中,获取用于抵扣该目标账单的目标资源。Step 203: From the at least one first resource, obtain a target resource for deducting the target bill.
步骤204:通过核销该目标资源,对该目标账单的资源数值进行抵扣。Step 204: Deduct the resource value of the target bill by writing off the target resource.
在一些实施例中,该第一资源的数量为多个,且多个第一资源为多种类型的资源;该从该至少一个第一资源中,获取用于抵扣该目标账单的目标资源,包括:In some embodiments, the number of the first resources is multiple, and the multiple first resources are multiple types of resources; the at least one first resource obtains a target resource for deducting the target bill ,include:
根据每个第一资源的类型,确定每个第一资源被核销的优先级;According to the type of each first resource, determine the priority of each first resource to be written off;
根据每个第一资源被核销的优先级,从多个第一资源中选择优先级满足条件的至少一个第一资源;According to the written-off priority of each first resource, at least one first resource whose priority satisfies the condition is selected from the plurality of first resources;
从该至少一个第一资源中,获取用于抵扣该目标账单的目标资源。From the at least one first resource, obtain a target resource for deducting the target bill.
在一些实施例中,该至少一个第一资源均为第一类型的资源,该第一类型的资源用于通过该第一资源在该目标商家中获取第一物品明细的物品;In some embodiments, the at least one first resource is a resource of a first type, and the resource of the first type is used to obtain the item with the first item details in the target merchant through the first resource;
该从该至少一个第一资源中,获取用于抵扣该目标账单的目标资源,包括:The obtaining, from the at least one first resource, a target resource for deducting the target bill includes:
对于每个第一资源,确定该第一资源对应的第一物品明细;For each first resource, determine the first item details corresponding to the first resource;
根据该目标账单的第二物品明细以及该每个第一资源对应的第一物品明细,从该至少一个资源中确定物品明细与该第二物品明细匹配的至少一个目标资源。According to the second item detail of the target bill and the first item detail corresponding to each first resource, at least one target resource whose item detail matches the second item detail is determined from the at least one resource.
在一些实施例中,该至少一个第一资源均为第二类型的资源,该第二类型的资源用于通过该第一资源在该目标商家中获取第一资源数值的物品;In some embodiments, the at least one first resource is a second type of resource, and the second type of resource is used to obtain an item with a first resource value in the target merchant through the first resource;
该从该至少一个第一资源中,获取用于抵扣该目标账单的目标资源,包括:The obtaining, from the at least one first resource, a target resource for deducting the target bill includes:
对于每个第一资源,确定该第一资源对应的第一资源数值;For each first resource, determine the first resource value corresponding to the first resource;
根据该目标账单对应的第二资源数值以及该每个第一资源对应的第一资源数值,从该至少一个资源中确定资源数值与该第二资源数值匹配的至少一个目标资源。According to the second resource value corresponding to the target bill and the first resource value corresponding to each first resource, at least one target resource whose resource value matches the second resource value is determined from the at least one resource.
在一些实施例中,该根据每个第一资源的类型,确定每个第一资源被核销的优先级,包括:In some embodiments, determining the priority of each first resource to be written off according to the type of each first resource includes:
对于每个第一资源,根据该第一资源的类型,确定该第一资源被使用的广泛度,确定该广泛度匹配的优先级,该优先级与该广泛度呈负相关;或者,For each first resource, according to the type of the first resource, determine the extent to which the first resource is used, and determine a priority for matching the extent, where the priority is negatively correlated with the extent; or,
对于每个第一资源,根据该第一资源的类型,确定该第一资源被使用的广泛度,根据该广泛度和该第一资源的剩余有效时长,确定该第一资源被核销的优先级,该优先级分别与该广泛度和该剩余有效时长均呈负相关。For each first resource, according to the type of the first resource, determine the extent to which the first resource is used, and determine the priority in which the first resource is written off according to the extent and the remaining valid duration of the first resource level, and the priority is negatively correlated with both the breadth and the remaining valid duration.
在一些实施例中,该根据该人脸图像,确定至少一个第一资源,包括:In some embodiments, the at least one first resource is determined according to the face image, including:
根据该人脸图像,确定该目标账号;Determine the target account according to the face image;
根据该目标账号,确定该目标账号的至少一个第二资源,该第二资源为该目标账号通过该互联网平台获取的,且未核销的资源;According to the target account, at least one second resource of the target account is determined, and the second resource is a resource obtained by the target account through the Internet platform and has not been written off;
根据该目标商家的商家标识,从该至少一个第二资源中确定该至少一个第一资源。The at least one first resource is determined from the at least one second resource according to the merchant identification of the target merchant.
在一些实施例中,该根据该人脸图像,确定该目标账号,包括:In some embodiments, determining the target account according to the face image includes:
根据该人脸图像,识别出该目标用户的身份信息,基于该身份信息,从身份信息和用户账号的对应关系中确定该目标账号;或者,Identify the identity information of the target user according to the face image, and determine the target account from the correspondence between the identity information and the user account based on the identity information; or,
基于该人脸图像,从人脸图像和用户账号的对应关系中确定该目标账号。Based on the face image, the target account is determined from the correspondence between the face image and the user account.
在一些实施例中,该方法还包括:In some embodiments, the method further includes:
响应于物品选择操作,展示选择界面,该选择界面包括至少一个待选择的物品;In response to the item selection operation, displaying a selection interface, the selection interface including at least one item to be selected;
获取基于该选择界面被选择的物品;Get the item selected based on the selection interface;
响应于基于该被选择的物品触发的确认操作,生成该被选择的物品对应的目标账单,且确定接收到该资源转移操作。In response to the confirmation operation triggered based on the selected item, a target bill corresponding to the selected item is generated, and it is determined that the resource transfer operation is received.
在一些实施例中,该获取目标用户的人脸图像,包括:In some embodiments, the acquiring the face image of the target user includes:
调用拍摄控件,通过该拍摄控件采集该目标用户的人脸图像;或者,Invoke the shooting control, and use the shooting control to collect the face image of the target user; or,
在该目标用户基于该选择界面选择物品的过程中,采集包含该目标用户的视频画面,从该视频画面中获取该目标用户的人脸图像。During the process of the target user selecting an item based on the selection interface, a video image including the target user is collected, and a face image of the target user is acquired from the video image.
在一些实施例中,该方法还包括:In some embodiments, the method further includes:
在该目标商家准备好该目标账单中的物品之后,展示资源转移界面,该资源转移界面中显示该目标账单的账单标识和资源转移选项;After the target merchant prepares the items in the target bill, a resource transfer interface is displayed, and the resource transfer interface displays the bill identifier and resource transfer options of the target bill;
响应于该资源转移选项被触发,确定接收到该目标账单的资源转移操作。In response to the resource transfer option being triggered, a resource transfer operation for which the target bill is received is determined.
在一些实施例中,该通过核销该目标资源,对该目标账单的资源数值进行抵扣,包括:In some embodiments, deducting the resource value of the target bill by writing off the target resource includes:
将该目标资源的状态设置为已核销,且将该目标账单的状态设置为已进行资源数值转移。Set the status of the target resource to written off, and set the status of the target bill to resource value transfer.
在一些实施例中,该通过核销该目标资源,对该目标账单的资源数值进行抵扣之前,该方法还包括:In some embodiments, before deducting the resource value of the target bill by writing off the target resource, the method further includes:
展示核销确认界面,该核销确认界面显示有该目标资源的订单信息,用于对该订单信息进行确认;Display the write-off confirmation interface, which displays the order information of the target resource for confirming the order information;
响应于基于该订单信息触发的确认操作,执行该通过核销该目标资源,对该目标账单的资源数值进行抵扣的步骤。In response to the confirmation operation triggered based on the order information, the step of deducting the resource value of the target bill by writing off the target resource is performed.
在本公开实施例中,通过在对目标账单进行资源转移的过程中,直接通过获取目标用户的人脸图像来确定该目标用户对应的目标账号的至少一个第一资源,从而直接从该至少一个第一资源中获取用于核销该目标账单的目标资源,这样只需要扫描用户的人脸图像,用户无需通过一系列操作向商家展示该订单信息,从而提高了目标账单的核销效率。In the embodiment of the present disclosure, in the process of transferring resources to the target bill, at least one first resource of the target account corresponding to the target user is determined by directly acquiring the face image of the target user, so that the at least one first resource is directly obtained from the at least one target account. The target resource for writing off the target bill is obtained from the first resource, so that only the face image of the user needs to be scanned, and the user does not need to display the order information to the merchant through a series of operations, thereby improving the writing-off efficiency of the target bill.
在本公开实施例中,目标用户通过第一终端选择物品,第一终端在目标用户选择物品的过程中采集包含该目标用户的视频画面,从该视频画面中获取该目标用户的人脸图像,从而根据该人脸图像对目标用户选择的商品对应的目标账单进行核销。图3是根据一示例性实施例示出的一种资源核销方法流程图。如图3所示,该资源核销方法包括以下步骤:In the embodiment of the present disclosure, the target user selects an item through the first terminal, and the first terminal collects a video image including the target user during the process of selecting the item by the target user, and obtains the face image of the target user from the video image, Thus, the target bill corresponding to the commodity selected by the target user is written off according to the face image. Fig. 3 is a flowchart showing a method for writing off resources according to an exemplary embodiment. As shown in Figure 3, the resource write-off method includes the following steps:
步骤301:在目标用户选择商品的过程中,第一终端获取目标用户的人脸图像。Step 301: During the process of the target user selecting the product, the first terminal acquires the face image of the target user.
第一终端在该目标用户基于该选择界面选择物品的过程中,采集包含该目标用户的视频画面,从该视频画面中获取该目标用户的人脸图像。During the process that the target user selects an item based on the selection interface, the first terminal collects a video image including the target user, and acquires a face image of the target user from the video image.
需要说明的一点是,第一终端对采集到的图像进行面部检测,响应于采集到的图像中包括人脸,停止采集图像;响应于采集到的图像中不包括人脸,继续采集图像,直到采集到的图像中包括人脸。It should be noted that the first terminal performs face detection on the collected image, and stops collecting the image in response to the collected image including a human face; and continues to collect the image in response to the collected image not including a human face until The collected images include human faces.
在第一终端采集到的图像中不包括人脸时,第一终端展示提示信息,提示信息用于提示用户未扫描到人脸,需要重新扫描。例如,该题述信息为“未扫描到人脸,请对准摄像头”。另外,该提示信息为文本信息或语音信息等,在本公开实施例中,对此不做具体限定。When the image collected by the first terminal does not include a human face, the first terminal displays prompt information, where the prompt information is used to prompt the user that no human face has been scanned and needs to be scanned again. For example, the title information is "No face was scanned, please point the camera". In addition, the prompt information is text information or voice information, which is not specifically limited in this embodiment of the present disclosure.
其中,第一终端上安装有摄像头,在本步骤中,第一终端接收到物品选择指示时,展示物品选择界面,启动终端的摄像头,通过摄像头采集人脸图像。第一终端在接收到物品选择完成的指示后,根据目标用户选择的物品生成目标账单,从目标用户选择物品的过程中采集的视频中,确定目标用户的人脸图像。A camera is installed on the first terminal. In this step, when the first terminal receives an item selection instruction, it displays an item selection interface, activates the camera of the terminal, and collects face images through the camera. After receiving the indication that the item selection is completed, the first terminal generates a target bill according to the item selected by the target user, and determines the face image of the target user from the video collected during the process of selecting the item by the target user.
在本实现方式中,第一终端在目标用户选择物品的过程中采集目标用户的人脸图像,物品选择和人脸图像获取能够同步进行,从而在目标用户选择完物品后,能够直接根据人脸图像进行资源核销,提高了资源核销的效率。并且,在目标用户采集物品的过程中获取人脸图像,防止了采集到其他用户的人脸图像,造成资源核销出错,提高了资源核销的准确性。In this implementation manner, the first terminal collects the face image of the target user during the process of selecting the item by the target user, and the item selection and face image acquisition can be performed synchronously, so that after the target user selects the item, the face image can be directly The image is used for resource write-off, which improves the efficiency of resource write-off. In addition, the face image is obtained during the process of collecting items by the target user, which prevents the face image of other users from being collected, which causes errors in resource write-off, and improves the accuracy of resource write-off.
步骤302:第一终端根据该人脸图像,确定至少一个第一资源。Step 302: The first terminal determines at least one first resource according to the face image.
其中,该至少一个第一资源为目标账号通过互联网平台在该目标商家获取的资源,该目标账号为该目标用户在该互联网平台注册的账号。相应的,在本步骤中,第一终端根据人脸图像确定目标账号,基于该目标账号确定至少一个第一资源。该过程通过以下步骤(1)-(3)实现,包括:Wherein, the at least one first resource is the resource obtained by the target account at the target merchant through the Internet platform, and the target account is the account registered by the target user on the Internet platform. Correspondingly, in this step, the first terminal determines a target account according to the face image, and determines at least one first resource based on the target account. The process is achieved through the following steps (1)-(3), including:
(1)第一终端根据该人脸图像,确定该目标账号。(1) The first terminal determines the target account according to the face image.
第一终端根据该人脸图像,识别出该目标用户的身份信息,基于该身份信息,从身份信息和用户账号的对应关系中确定该目标账号。The first terminal identifies the identity information of the target user according to the face image, and determines the target account from the correspondence between the identity information and the user account based on the identity information.
在一种实现方式中,终端直接根据存储的人脸图像和用户账号的对应关系确定该人脸图像对应的目标账号。In an implementation manner, the terminal directly determines the target account corresponding to the face image according to the stored correspondence between the face image and the user account.
在另一种实现方式中,该身份信息和用户账号的对应关系存储在服务器中。相应的,终端识别到的身份信息发送给服务器,服务器根据该身份信息,从身份信息和用户账号的对应关系中,确定该身份信息对应的目标账号,将该目标账号信息发送给第一终端,第一终端接收服务器发送的目标账号。In another implementation manner, the correspondence between the identity information and the user account is stored in the server. Correspondingly, the identity information identified by the terminal is sent to the server, and the server determines the target account corresponding to the identity information from the correspondence between the identity information and the user account according to the identity information, and sends the target account information to the first terminal, The first terminal receives the target account number sent by the server.
在本步骤之前,目标用户通过第二终端在目标应用程序的服务器中注册账号。目标用户在注册账号的过程中输入该目标用户的身份信息,或者,目标用户在通过第二终端在互联网平台中获取资源时,输入该目标用户的身份信息。第二终端将该身份信息和目标账号发送给服务器,服务器接收该身份信息和目标账号,将该身份信息和目标账号对应存储在信息库中。Before this step, the target user registers an account in the server of the target application program through the second terminal. The target user inputs the identity information of the target user in the process of registering the account, or the target user inputs the identity information of the target user when acquiring resources on the Internet platform through the second terminal. The second terminal sends the identity information and the target account to the server, the server receives the identity information and the target account, and stores the identity information and the target account in the information database correspondingly.
另外,第一终端通过身份信息库确定人脸图像对应的身份信息。该身份信息库为资源转移平台收集的身份信息库。或者,该身份信息库为公安部门存储的公民信息库。In addition, the first terminal determines the identity information corresponding to the face image through the identity information database. The identity information base is the identity information base collected by the resource transfer platform. Alternatively, the identity information database is a citizen information database stored by the public security department.
在该身份信息库为资源转移平台收集的身份信息库情况下,在本步骤之前,目标用户在通过第二终端注册目标账号的过程中,将人脸图像和身份信息输入至第二终端。第二终端将该人脸图像和身份信息发送给资源转移平台,资源转移平台接收该人脸图像和身份信息,将该人脸图像和身份信息对应存储。在第一终端确定人脸图像对应的身份信息时,将该人脸图像发送给资源转移平台,通过资源转移平台从服务器中查询该人脸图像对应的身份信息,将该身份信息发送给第一终端,第一终端接收该身份信息。或者,第一终端直接从该身份信息库中查询该人脸图像对应的身份信息。If the identity information database is the identity information database collected by the resource transfer platform, before this step, the target user inputs the face image and identity information into the second terminal during the process of registering the target account through the second terminal. The second terminal sends the face image and the identity information to the resource transfer platform, and the resource transfer platform receives the face image and the identity information, and stores the face image and the identity information correspondingly. When the first terminal determines the identity information corresponding to the face image, the face image is sent to the resource transfer platform, the identity information corresponding to the face image is queried from the server through the resource transfer platform, and the identity information is sent to the first terminal. terminal, the first terminal receives the identity information. Or, the first terminal directly queries the identity information corresponding to the face image from the identity information database.
在该身份信息库为公安部门存储的公民信息库的情况下,在第一终端确定人脸图像对应的身份信息时,第一终端从该公民信息库中确定身份证上的人脸图像与该人脸图像匹配的身份身份证信息,从该身份证信息中确定该目标用户的身份信息。In the case where the identity information database is a citizen information database stored by the public security department, when the first terminal determines the identity information corresponding to the face image, the first terminal determines from the citizen information database that the face image on the ID card is the same as the identity information corresponding to the face image. The identity card information matched with the face image, and the identity information of the target user is determined from the identity card information.
需要说明的一点是,第一终端在获取身份信息之前,需要获取目标用户的授权。It should be noted that, before acquiring the identity information, the first terminal needs to acquire the authorization of the target user.
(2)第一终端根据该目标账号,确定该目标账号的至少一个第二资源。(2) The first terminal determines at least one second resource of the target account according to the target account.
其中,该第二资源为该目标账号通过该互联网平台获取的,且未核销的资源。Wherein, the second resource is a resource obtained by the target account through the Internet platform and has not been written off.
在本步骤中,第一终端根据账号和第二资源的对应关系确定该目标账号的至少一个第二资源。在一些实施例中,该账号和第二资源的对应关系存储在服务器中。相应的,第一终端根据该目标账号生成第一获取请求,向服务器发送第一获取请求该第一获取请求中携带该目标账号;服务器接收该第一获取请求,根据该第一获取请求中携带的目标账号,从账号和第二资源的对应关系中,确定该目标账号对应的至少一个第二资源;将该至少一个第二资源发送给第一终端。In this step, the first terminal determines at least one second resource of the target account according to the corresponding relationship between the account and the second resource. In some embodiments, the correspondence between the account and the second resource is stored in the server. Correspondingly, the first terminal generates a first acquisition request according to the target account, and sends the first acquisition request to the server. The first acquisition request carries the target account number; the server receives the first acquisition request, according to the first acquisition request carried The target account of the target account is determined from the corresponding relationship between the account and the second resource, and at least one second resource corresponding to the target account is determined; the at least one second resource is sent to the first terminal.
在本步骤之前,目标用户通过该目标账号登陆第二终端上安装的目标应用程序,第二终端通过该目标应用程序进行资源转移,得到第二资源,将该第二资源与该目标账号对应存储在服务器中。例如,该目标应用程序为团购应用程序,用户通过该团购应用程序购买代金券或套餐券等,将已购买未使用的代金券或套餐券作为第二资源,将该代金券和套餐券与该当前账号的账号标识存储在服务器中。Before this step, the target user logs in to the target application installed on the second terminal through the target account, and the second terminal transfers resources through the target application to obtain a second resource, and stores the second resource corresponding to the target account in the server. For example, the target application is a group purchase application. The user purchases vouchers or package vouchers through the group purchase application, uses the purchased unused vouchers or package vouchers as a second resource, and associates the vouchers and package vouchers with the The account ID of the current account is stored in the server.
在本实现方式中,第一终端通过人脸图像确定目标账号,确定该目标账号的至少一个第二资源,在确定第二资源的过程中,无需用户进行繁琐的操作,只需要采集用户的人脸图像即可,从而简化了用户使用资源进行资源转移的步骤,提高了资源转移效率。In this implementation manner, the first terminal determines the target account through the face image, and determines at least one second resource of the target account. In the process of determining the second resource, the user does not need to perform cumbersome operations, and only needs to collect the user's personal information. A face image is sufficient, which simplifies the steps for users to transfer resources using resources and improves the efficiency of resource transfer.
(3)第一终端根据该目标商家的商家标识,从该至少一个第二资源中确定该至少一个第一资源。(3) The first terminal determines the at least one first resource from the at least one second resource according to the merchant identifier of the target merchant.
在本步骤中,第一终端确定目标账单对应的商家标识;从该至少一个第二资源中,确定该商家标识对应的至少一个第一资源。In this step, the first terminal determines the merchant identifier corresponding to the target bill; and from the at least one second resource, determines at least one first resource corresponding to the merchant identifier.
其中,该目标账单包括本次资源转移的数值、本次资源转移对应的物品明细中的至少一种。其中,该物品明细包括物品的名称、所需资源转移的数值、物品的图片、物品的简介中的至少一项。目标账单中还包括本次资源转移过程中收取资源的商家的商家标识。Wherein, the target bill includes at least one of the value of the current resource transfer and the item details corresponding to the current resource transfer. Wherein, the item details include at least one of the name of the item, the value of the required resource transfer, the picture of the item, and the introduction of the item. The target bill also includes the merchant identifier of the merchant who received the resources during the resource transfer process.
在本实现方式中,根据人脸图像和目标商家的商家标识确定能够被核销的至少一个第一资源,从而无需从目标账号的所有资源中确定第一资源,进而提高了确定第一资源的效率。In this implementation manner, at least one first resource that can be written off is determined according to the face image and the merchant identification of the target merchant, so that it is not necessary to determine the first resource from all the resources of the target account, thereby improving the efficiency of determining the first resource. efficiency.
步骤303:第一终端从该至少一个第一资源中,获取用于抵扣该目标账单的目标资源。Step 303: The first terminal obtains, from the at least one first resource, a target resource for deducting the target bill.
在本步骤中,在该至少一个第一资源的数量为一个时,第一终端确定该第一资源是否能够核销该目标账单,如果能核销该目标账单,第一终端将该第一资源确定为目标资源,如果不能核销,第一终端展示核销失败提示。例如,“当前无可用资源,请选用其他资源转移方式”等。In this step, when the quantity of the at least one first resource is one, the first terminal determines whether the first resource can write off the target bill, and if the target bill can be written off, the first terminal uses the first resource to write off the target bill. Determined as the target resource, if the write-off cannot be performed, the first terminal displays a prompt of write-off failure. For example, "There are currently no resources available, please choose another resource transfer method" and so on.
例如,该第一资源为用于根据资源数值进行抵扣的资源,例如,代金券,则第一终端确定该第一资源能够核销该目标账单,将该第一资源确定为目标资源。该第一资源为用于根据物品明细进行抵扣的资源,例如,团购券,则第一终端确定该目标账单的第二物品明细,如果该第一资源对应的第一物品明细与该第二物品明细匹配,则第一终端确定该第一资源能够核销该目标账单,将该第一资源确定为目标资源。如果该第一资源对应的第一物品明细与该第二物品明细不匹配,则第一终端确定该第一资源不能够核销该目标账单。For example, the first resource is a resource used for deduction according to the resource value, such as a voucher, and the first terminal determines that the first resource can write off the target bill, and determines the first resource as the target resource. The first resource is a resource used for deduction according to item details, for example, group purchase coupons, the first terminal determines the second item details of the target bill, if the first item details corresponding to the first resource and the second item details If the item details match, the first terminal determines that the first resource can write off the target bill, and determines the first resource as the target resource. If the first item detail corresponding to the first resource does not match the second item detail, the first terminal determines that the first resource cannot write off the target bill.
在一些实施例中,在该第一资源的数量为多个的情况下,该多个第一资源为同一类型的资源,则终端确定该同一类型的资源是否能核销该目标账单。从该多个第一资源中确定能够核销该目标账单的目标资源。In some embodiments, when the number of the first resources is multiple, and the multiple first resources are resources of the same type, the terminal determines whether the resources of the same type can write off the target bill. A target resource capable of writing off the target bill is determined from the plurality of first resources.
例如,该多个第一资源为用于根据资源数值进行抵扣的资源,例如,代金券,则第一终端确定该多个第一资源能够核销该目标账单,从该多个第一资源中确定目标资源。该多个第一资源为用于根据物品明细进行抵扣的资源,例如,团购券,则第一终端确定该目标账单的第二物品明细,如果该第一资源对应的第一物品明细与该第二物品明细匹配,则第一终端确定该第一资源能够核销该目标账单,从能够核销该目标账单的第一资源中确定目标资源。For example, the plurality of first resources are resources used for deduction according to the resource value, such as vouchers, then the first terminal determines that the plurality of first resources can write off the target bill, and the target bill can be written off from the plurality of first resources. Identify target resources. The multiple first resources are resources used for deduction according to item details, for example, group purchase coupons, the first terminal determines the second item details of the target bill, if the first item details corresponding to the first resource is the same as the If the second item details match, the first terminal determines that the first resource can write off the target bill, and determines the target resource from the first resources that can write off the target bill.
其中,终端从多个能够核销目标账单的第一资源中确定该目标资源时,可以根据用户的选择确定目标资源,或者根据该多个第一资源的优先级核销该目标资源。Wherein, when the terminal determines the target resource from a plurality of first resources that can write off the target bill, the terminal may determine the target resource according to the user's selection, or write off the target resource according to the priority of the plurality of first resources.
在一种实现方式中,第一终端能够根据用户的选择从多个第一资源中确定该目标资源。第一终端展示资源选择界面,该资源选择界面中展示多个第一资源,确定目标用户选择的第一资源,将目标用户选择的第一资源的确定为目标资源。In an implementation manner, the first terminal can determine the target resource from a plurality of first resources according to the user's selection. The first terminal displays a resource selection interface, in which a plurality of first resources are displayed, the first resource selected by the target user is determined, and the first resource selected by the target user is determined as the target resource.
在另一种实现方式中,第一终端能够根据多个第一资源的有效时间段确定该目标资源。第一终端确定每个第一资源的有效时间段,根据该有效时间段,从该多个第一资源中确定剩余的有效时长最短的目标资源。In another implementation manner, the first terminal can determine the target resource according to the valid time periods of the plurality of first resources. The first terminal determines the valid time period of each first resource, and according to the valid time period, determines the remaining target resource with the shortest valid time period from the plurality of first resources.
在另一种实现方式中,该第一资源的数量为多个,且多个第一资源为多种类型的资源。其中,第一资源的类型根据第一资源的功能进行划分,例如,第一资源为用于根据资源数值进行抵扣的资源,例如,代金券。或者,第一资源为用于根据物品明细进行抵扣的资源,例如套餐券等。In another implementation manner, the number of the first resources is multiple, and the multiple first resources are multiple types of resources. Wherein, the type of the first resource is divided according to the function of the first resource, for example, the first resource is a resource used for deduction according to the value of the resource, such as a voucher. Alternatively, the first resource is a resource used for deduction according to item details, such as a package coupon.
在另一种实现方式中,第一终端根据用户选择从该多个第一资源中确定至少一个目标资源。该过程与上述第一资源的数量为多个,且该多个第一资源为同一类型的资源的情况下,第一终端能够根据用户的选择从多个第一资源中确定该目标资源的过程相似,在此不再赘述。In another implementation manner, the first terminal determines at least one target resource from the plurality of first resources according to user selection. In the case that the number of this process and the above-mentioned first resources is multiple, and the multiple first resources are resources of the same type, the process that the first terminal can determine the target resource from multiple first resources according to the user's selection similar, and will not be repeated here.
在另一种实现方式中,第一终端确定该多个第一资源的优先级,根据该多个第一资源的优先级确定目标资源。其中,该优先级根据多个第一资源的有效时间段确定,例如,第一终端根据第一资源的有效时间段,确定第一资源剩余的有效时长,根据剩余的有效时长确定第一资源的优先级。其中,剩余的有效时长越短,优先级越高。In another implementation manner, the first terminal determines priorities of the multiple first resources, and determines the target resource according to the priorities of the multiple first resources. The priority is determined according to the valid time periods of the plurality of first resources. For example, the first terminal determines the remaining valid time period of the first resource according to the valid time period of the first resource, and determines the validity period of the first resource according to the remaining valid time period. priority. Among them, the shorter the remaining valid duration, the higher the priority.
第一终端还可以根据第一资源的类型确定第一资源被核销的优先级,该过程通过以下步骤(A1)-(A3)实现,包括:The first terminal may also determine the priority of the first resource to be written off according to the type of the first resource, and the process is implemented through the following steps (A1)-(A3), including:
(A1)第一终端根据每个第一资源的类型,确定每个第一资源被核销的优先级。(A1) The first terminal determines the write-off priority of each first resource according to the type of each first resource.
在一些实施例中,对于每个第一资源,第一终端根据该第一资源的类型,确定该第一资源被使用的广泛度,确定该广泛度匹配的优先级,该优先级与该广泛度呈负相关。In some embodiments, for each first resource, the first terminal determines, according to the type of the first resource, the extent to which the first resource is used, and determines a priority for matching the extent, and the priority is the same as the extent of use. degree is negatively correlated.
不同类型的资源其被使用广泛度不同,例如,用于根据资源数值进行抵扣的第一资源,由于不受物品明细的约束,任一物品明细都能够被使用,在此类型的第一资源的广泛度较高。而用于根据物品明细进行抵扣的第一资源,由于受物品明细的约束,只能在物品明细与该目标账单的物品明细匹配时才可用,在此类型的第一资源的广泛度较低。其中,广泛度越高,优先级越低。Different types of resources are widely used. For example, the first resource used for deduction based on the value of the resource, because it is not constrained by the item details, any item details can be used. In the first resource of this type higher in breadth. The first resource used for deduction according to the item details is restricted by the item details and can only be used when the item details match the item details of the target bill. The first resource of this type is less extensive. . Among them, the higher the breadth, the lower the priority.
在另一种实现方式中,对于每个第一资源,第一终端根据该第一资源的类型,确定该第一资源被使用的广泛度,根据该广泛度和该第一资源的剩余有效时长,确定该第一资源被核销的优先级,该优先级分别与该广泛度和该剩余有效时长均呈负相关。In another implementation manner, for each first resource, the first terminal determines, according to the type of the first resource, the extent to which the first resource is used, and according to the extent and the remaining valid duration of the first resource , and determine the priority of the first resource to be written off, and the priority is negatively correlated with the breadth and the remaining valid duration, respectively.
其中,该优先级根据多个第一资源的有效时间段确定,例如,第一终端根据第一资源的有效时间段,确定第一资源剩余的有效时长,根据剩余的有效时长确定第一资源的优先级。其中,剩余的有效时长越短,优先级越高。The priority is determined according to the valid time periods of the plurality of first resources. For example, the first terminal determines the remaining valid time period of the first resource according to the valid time period of the first resource, and determines the validity period of the first resource according to the remaining valid time period. priority. Among them, the shorter the remaining valid duration, the higher the priority.
在本实现方式中,分别基于第一资源的广泛度和有效时长确定第一资源的优先级,从而在根据优先级确定被核销的资源时,能够优先核销广泛度低的和有效时长短的资源,从而防止资源失效,造成浪费。In this implementation manner, the priority of the first resource is determined based on the extensiveness and the effective duration of the first resource respectively, so that when the resources to be written off are determined according to the priority, the ones with low extensiveness and short effective duration can be written off first. resources, so as to prevent resource failure and waste.
(A2)第一终端根据每个第一资源被核销的优先级,从多个第一资源中选择优先级满足条件的至少一个第一资源。(A2) The first terminal selects at least one first resource whose priority satisfies a condition from a plurality of first resources according to the priority of each first resource to be written off.
在本步骤中,第一终端根据被核销的优先级,依次确定该第一资源是否满足被核销的条件,从而确定出满足条件的至少一个第一资源。In this step, the first terminal sequentially determines whether the first resource meets the write-off condition according to the write-off priority, thereby determining at least one first resource that satisfies the condition.
例如,该多个第一资源包括代金券和套餐券。根据步骤(A1)确定套餐券的优先级高于代金券,则第一终端分别确定每个套餐券的第一物品明细,根据该目标账单的第二物品明细以及该第一物品明细,确定该套餐券是否级满足条件。例如,套餐券对应的物品是A和B,用户点的物品也包括A和B,则确定该套餐券满足条件。For example, the plurality of first resources include vouchers and package coupons. According to step (A1), it is determined that the priority of the package coupon is higher than that of the voucher, then the first terminal determines the first item details of each package coupon respectively, and determines the first item details according to the second item details of the target bill and the first item details Whether the package coupon meets the conditions. For example, if the items corresponding to the package coupon are A and B, and the items ordered by the user also include A and B, it is determined that the package coupon satisfies the condition.
如果套餐券满足条件执行步骤(A3),如果不满足条件,继续根据优先级确定第一资源中的代金券是否满足条件,则第一终端确定该代金券对应的第一资源数值;根据该目标账单对应的第二资源数值以及该第一资源数值,确定该代金券是否级满足条件。如果套餐券满足条件执行步骤(A3),如果不满足条件,展示无可用第一资源的提示信息。If the package coupon satisfies the condition, perform step (A3), if not, continue to determine whether the coupon in the first resource satisfies the condition according to the priority, and the first terminal determines the value of the first resource corresponding to the coupon; according to the target The second resource value corresponding to the bill and the first resource value determine whether the voucher satisfies the condition. If the package coupon satisfies the condition, perform step (A3), and if the condition is not met, display a prompt message that the first resource is unavailable.
(A3)第一终端从该至少一个第一资源中,获取用于抵扣该目标账单的目标资源。(A3) The first terminal obtains, from the at least one first resource, a target resource for deducting the target bill.
在本步骤中,第一终端从满足条件的至少一个第一资源中,获取用于抵扣该目标账单的目标资源。其中,该目标资源的数量根据需要进行确定,在本公开实施例中,对此不做具体限定。例如,套餐券对应的物品是A和B,用户点的物品为AA BB,则确定该套餐券的数量为两张。再例如,第一资源数值代第二资源数值的代金券,用户所点物品总价为第三资源数值,其中,第三资源数值为第二资源数值的二倍,则可以使用两张代金券。In this step, the first terminal obtains the target resource for deducting the target bill from at least one first resource that satisfies the condition. Wherein, the quantity of the target resource is determined according to needs, which is not specifically limited in this embodiment of the present disclosure. For example, if the items corresponding to the package coupons are A and B, and the items ordered by the user are AA BB, the quantity of the package coupons is determined to be two. For another example, the value of the first resource is a voucher for the value of the second resource, and the total price of the items ordered by the user is the value of the third resource, where the value of the third resource is twice the value of the second resource, then two vouchers can be used. .
另外,第一终端还可以同时使用不同类型的第一资源。例如,套餐券对应的物品是A和B,用户点的物品为AABC,则第一终端使用一张套餐券,将剩余的物品AC对应的资源数值使用代金券进行核销。In addition, the first terminal may also use different types of first resources at the same time. For example, if the items corresponding to the package coupon are A and B, and the item ordered by the user is AABC, the first terminal uses a package coupon, and uses the voucher to write off the resource value corresponding to the remaining item AC.
在本实现方式中,根据第一资源的资源类型确定第一资源的优先级,从而使得广泛度较低的第一资源优先被核销,防止了第一资源因为与物品明细不匹配或错过有效期等原因而不能被核销,进而提高了第一资源的核销率。In this implementation manner, the priority of the first resource is determined according to the resource type of the first resource, so that the first resource with a lower degree of breadth is preferentially written off, preventing the first resource from not matching the item details or missing the validity period It cannot be written off due to other reasons, thereby increasing the write-off rate of the first resource.
第一终端还能够直接根据第一资源的资源类型确定该目标资源。在一种实现方式中,该至少一个第一资源均为第一类型的资源,该第一类型的资源用于通过该第一资源在该目标商家中获取第一物品明细的物品。则第一终端从该至少一个第一资源中,获取用于抵扣该目标账单的目标资源的过程可以通过一下步骤(B1)-(B2)实现,包括:The first terminal can also directly determine the target resource according to the resource type of the first resource. In an implementation manner, the at least one first resource is a resource of a first type, and the resource of the first type is used to obtain items of the first item details from the target merchant through the first resource. Then, the process that the first terminal obtains the target resource for deducting the target bill from the at least one first resource can be implemented through the following steps (B1)-(B2), including:
(B1)对于每个第一资源,第一终端确定该第一资源对应的第一物品明细。(B1) For each first resource, the first terminal determines the first item details corresponding to the first resource.
(B2)第一终端根据该目标账单的第二物品明细以及该每个第一资源对应的第一物品明细,从该至少一个资源中确定物品明细与该第二物品明细匹配的至少一个目标资源。(B2) The first terminal determines at least one target resource whose item details match the second item details from the at least one resource according to the second item details of the target bill and the first item details corresponding to each first resource .
在本实现方式中,根据第一资源的物品明细确定与目标订单匹配的目标资源,防止了第一资源因为与物品明细不匹配而不能被核销,进而提高了第一资源的核销率。In this implementation, the target resource matching the target order is determined according to the item details of the first resource, which prevents the first resource from being written off because it does not match the item details, thereby improving the write-off rate of the first resource.
在另一种实现方式中,该至少一个第一资源均为第二类型的资源,该第二类型的资源用于通过该第一资源在该目标商家中获取第一资源数值的物品。则第一终端从该至少一个第一资源中,获取用于抵扣该目标账单的目标资源的过程可以通过一下步骤(C1)-(C2)实现,包括:In another implementation manner, the at least one first resource is a second type of resource, and the second type of resource is used to obtain an item with a first resource value from the target merchant through the first resource. Then, the process that the first terminal obtains the target resource for deducting the target bill from the at least one first resource can be implemented through the following steps (C1)-(C2), including:
(C1)对于每个第一资源,第一终端确定该第一资源对应的第一资源数值。(C1) For each first resource, the first terminal determines a first resource value corresponding to the first resource.
(C2)第一终端根据该目标账单对应的第二资源数值以及该每个第一资源对应的第一资源数值,从该至少一个资源中确定资源数值与该第二资源数值匹配的至少一个目标资源。(C2) The first terminal determines at least one target whose resource value matches the second resource value from the at least one resource according to the second resource value corresponding to the target bill and the first resource value corresponding to each first resource resource.
在本实现方式中,根据第一资源的资源数值确定与目标订单匹配的目标资源,防止了第一资源因为与资源数值不匹配而不能被核销,进而提高了第一资源的核销率。In this implementation, the target resource matching the target order is determined according to the resource value of the first resource, which prevents the first resource from being written off because it does not match the resource value, thereby improving the write-off rate of the first resource.
步骤304:第一终端将该目标资源的状态设置为已核销,且将该目标账单的状态设置为已进行资源数值转移。Step 304 : The first terminal sets the status of the target resource as written off, and sets the status of the target bill as the resource value transfer has been performed.
在本步骤中,第一终端将该目标资源的资源标识发送给资源转移平台,资源转移平台将该目标资源的状态设置为已核销。第一终端将该目标账单的状态设置为已进行资源转移,将该目标账单对应的资源数值发送给资源转移平台,资源转移平台将该资源数值转移到该目标商家对应的资源转移账号,保证了第一资源不会被重复使用,提高了安全性。In this step, the first terminal sends the resource identifier of the target resource to the resource transfer platform, and the resource transfer platform sets the state of the target resource to be written off. The first terminal sets the status of the target bill as having been transferred resources, sends the resource value corresponding to the target bill to the resource transfer platform, and the resource transfer platform transfers the resource value to the resource transfer account corresponding to the target merchant, ensuring that The first resource will not be reused, which improves security.
需要说明的一点是,第一终端在将该目标资源的状态设置为已核销,且将该目标账单的状态设置为已进行资源数值转移之前,向目标用户确认使用该第一资源,该过程为:第一终端展示核销确认界面,该核销确认界面显示有该目标资源的订单信息,用于对该订单信息进行确认;响应于基于该订单信息触发的确认操作,执行步骤304。It should be noted that the first terminal confirms the use of the first resource with the target user before setting the status of the target resource to be written off and the status of the target bill to the resource value transfer. The steps are: the first terminal displays a write-off confirmation interface that displays order information of the target resource for confirming the order information; and in response to a confirmation operation triggered based on the order information,
在本实现方式中,通过向目标用户展示核销确认界面,在目标用户确定进行核销后才通过目标资源核销该目标账单,防止了目标用户的第一资源被盗用,提高了安全性。In this implementation, the target user is presented with a write-off confirmation interface, and the target bill is written off through the target resource after the target user determines to write off, thereby preventing the target user's first resource from being stolen and improving security.
在本公开实施例中,通过在对目标账单进行资源转移的过程中,直接通过获取目标用户的人脸图像来确定该目标用户对应的目标账号的至少一个第一资源,从而直接从该至少一个第一资源中获取用于核销该目标账单的目标资源,这样只需要扫描用户的人脸图像,用户无需通过一系列操作向商家展示该订单信息,从而提高了目标账单的核销效率。In the embodiment of the present disclosure, in the process of transferring resources to the target bill, at least one first resource of the target account corresponding to the target user is determined by directly acquiring the face image of the target user, so that the at least one first resource is directly obtained from the at least one target account. The target resource for writing off the target bill is obtained from the first resource, so that only the face image of the user needs to be scanned, and the user does not need to display the order information to the merchant through a series of operations, thereby improving the writing-off efficiency of the target bill.
在本公开实施例中,目标用户完成物品选择后,在进行资源转移的过程中获取目标用户的人脸图像,从而根据该人脸图像对目标用户选择的商品对应的目标账单进行核销。图4是根据一示例性实施例示出的一种资源核销方法流程图。In the embodiment of the present disclosure, after the target user completes the item selection, a face image of the target user is acquired in the process of resource transfer, and the target bill corresponding to the item selected by the target user is written off according to the face image. Fig. 4 is a flowchart showing a method for writing off resources according to an exemplary embodiment.
如图4所示,该资源核销方法包括以下步骤:As shown in Figure 4, the resource write-off method includes the following steps:
步骤401:响应于目标账单的资源转移操作,第一终端获取目标用户的人脸图像。Step 401: In response to the resource transfer operation of the target bill, the first terminal acquires the face image of the target user.
其中,该目标账单为在目标商家获取物品生成的账单。Wherein, the target bill is a bill generated by acquiring items at the target merchant.
第一终端接收到基于目标账单的资源转移操作时,调用拍摄控件,通过该拍摄控件采集该目标用户的人脸图像。其中,该拍摄控件为用户采集图像的控件。例如,该拍摄控件为摄像头。相应的,响应于接收到目标账单的资源转移操作,第一终端调用摄像头,通过摄像头采集人脸图像。其中,该摄像头为第一终端上安装的摄像头,或者,摄像头为与第一终端连接的外部摄像头。在本公开实施例中,对此不做具体限定。When the first terminal receives the resource transfer operation based on the target bill, it calls the photographing control, and collects the face image of the target user through the photographing control. Wherein, the photographing control is a control for the user to collect images. For example, the capture control is a camera. Correspondingly, in response to receiving the resource transfer operation of the target bill, the first terminal invokes the camera, and collects the face image through the camera. Wherein, the camera is a camera installed on the first terminal, or the camera is an external camera connected to the first terminal. In the embodiments of the present disclosure, this is not specifically limited.
在本实现方式中,第一终端通过调用拍摄空间采集人脸图像,丰富了核销账账单时采集人脸图像的场景。In this implementation manner, the first terminal collects the face image by calling the shooting space, which enriches the scene of collecting the face image when the bill is written off.
目标用户在选择完物品后,第一终端根据目标用户选择的物品生成目标账单,目标用户通过对该目标账单进行核销才能获取选择的物品。在本实现方式中,第一终端中展示多个账单,响应于该多个账单中任一账单的触发操作,第一终端确定接收到资源转移操作。第一终端确定接收到资源转移操作的过程通过以下步骤(B1)-(B2)实现,包括:After the target user selects the item, the first terminal generates a target bill according to the item selected by the target user, and the target user can obtain the selected item only by writing off the target bill. In this implementation manner, the first terminal displays multiple bills, and in response to a trigger operation of any one of the multiple bills, the first terminal determines that a resource transfer operation is received. The process that the first terminal determines that the resource transfer operation is received is implemented through the following steps (B1)-(B2), including:
(B1)第一终端展示账单界面,该账单界面中显示该目标商家的多个账单。(B1) The first terminal displays a bill interface, where multiple bills of the target merchant are displayed on the bill interface.
(B2)响应于该账单界面中任一账单的选择操作,第一终端确定接收到该目标账单的资源转移操作。(B2) In response to the selection operation of any bill in the bill interface, the first terminal determines that the resource transfer operation of the target bill is received.
例如,第一终端中展示多个账单,响应于对任一账单的选择操作,终端确定接收到资源转移操作。其中,该目标账单为在目标商家获取物品生成的账单。该目标账单为在当前商家进行交易但未支付的账单。For example, multiple bills are displayed in the first terminal, and in response to a selection operation on any one of the bills, the terminal determines that a resource transfer operation is received. Wherein, the target bill is a bill generated by acquiring items at the target merchant. The target bill is an unpaid bill that was transacted at the current merchant.
在本步骤之前,第一终端根据目标用户选择的物品生成目标账单。该过程通过一下步骤(A1)-(A3)实现,包括:Before this step, the first terminal generates a target bill according to the item selected by the target user. This process is achieved through the following steps (A1)-(A3), including:
(A1)响应于物品选择操作,第一终端展示选择界面。(A1) In response to the item selection operation, the first terminal presents a selection interface.
其中,该选择界面包括至少一个待选择的物品。例如,该选择界面为菜单界面,则该至少一个待选择的物品为菜品。又例如,该选择界面为电影演出列表,则该至少一个待选择的物品为电影或演出名称。Wherein, the selection interface includes at least one item to be selected. For example, if the selection interface is a menu interface, the at least one item to be selected is a dish. For another example, the selection interface is a movie show list, and the at least one item to be selected is a movie or show name.
该物品选择界面总还包括物品的属性选项。例如,物品的大小、分量等。该物品选择界面还可以包括物品的使用时间选项等。例如,该电影的播放时间、播放时长等信息。The item selection interface always includes item attribute options. For example, the size, weight, etc. of the item. The item selection interface may also include options for the use time of the item, and the like. For example, information such as the playback time and playback duration of the movie.
(A2)第一终端获取基于该选择界面被选择的物品。(A2) The first terminal acquires the item selected based on the selection interface.
在本步骤中,第一终端基于该选择界面接收选择操作,确定该选择操作对应的物品。例如,第一终端接收对该选择的物品的点击操作,根据该点击操作确定被选择的物品。In this step, the first terminal receives the selection operation based on the selection interface, and determines the item corresponding to the selection operation. For example, the first terminal receives a click operation on the selected item, and determines the selected item according to the click operation.
(A3)响应于基于该被选择的物品触发的确认操作,第一终端生成该被选择的物品对应的目标账单,且确定接收到该资源转移操作。(A3) In response to the confirmation operation triggered based on the selected item, the first terminal generates a target bill corresponding to the selected item, and determines that the resource transfer operation is received.
在本实现方式中,第一终端在用户选择完物品后,再获取目标用户的人脸图像,方便目标用户确认选择的物品,防止目标用户错误选择物品造成错误核销资源,进而提高了资源核销的准确率。In this implementation manner, the first terminal obtains the face image of the target user after the user selects the item, which is convenient for the target user to confirm the selected item, prevents the target user from wrongly selecting the item and causes the wrong write-off of resources, thereby improving the resource verification. pin accuracy.
步骤402:第一终端根据该人脸图像,确定至少一个第一资源。Step 402: The first terminal determines at least one first resource according to the face image.
本步骤与步骤302相似,再次不再赘述。This step is similar to step 302 and will not be repeated again.
步骤403:第一终端从该至少一个第一资源中,获取用于抵扣该目标账单的目标资源。Step 403: The first terminal obtains, from the at least one first resource, a target resource for deducting the target bill.
本步骤与步骤303相似,再次不再赘述。This step is similar to step 303 and will not be repeated again.
步骤404:第一终端将该目标资源的状态设置为已核销,且将该目标账单的状态设置为已进行资源数值转移。Step 404: The first terminal sets the status of the target resource as written-off, and sets the status of the target bill as the resource value transfer has been performed.
本步骤与步骤304相似,再次不再赘述。This step is similar to step 304 and will not be repeated again.
在本公开实施例中,通过在对目标账单进行资源转移的过程中,直接通过获取目标用户的人脸图像来确定该目标用户对应的目标账号的至少一个第一资源,从而直接从该至少一个第一资源中获取用于核销该目标账单的目标资源,这样只需要扫描用户的人脸图像,用户无需通过一系列操作向商家展示该订单信息,从而提高了目标账单的核销效率。In the embodiment of the present disclosure, in the process of transferring resources to the target bill, at least one first resource of the target account corresponding to the target user is determined by directly acquiring the face image of the target user, so that the at least one first resource is directly obtained from the at least one target account. The target resource for writing off the target bill is obtained from the first resource, so that only the face image of the user needs to be scanned, and the user does not need to display the order information to the merchant through a series of operations, thereby improving the writing-off efficiency of the target bill.
图5是根据一示例性实施例示出的一种资源核销装置的框图,如图5所示,该资源核销装置包括:FIG. 5 is a block diagram of a resource write-off apparatus according to an exemplary embodiment. As shown in FIG. 5 , the resource write-off apparatus includes:
第一获取模块501,用于响应于目标账单的资源转移操作,获取目标用户的人脸图像,该目标账单为在目标商家获取物品生成的账单;The first obtaining
第一确定模块502,用于根据该人脸图像,确定至少一个第一资源,该至少一个第一资源为目标账号通过互联网平台在该目标商家获取的资源,该目标账号为该目标用户在该互联网平台注册的账号;The
第二获取模块503,用于从该至少一个第一资源中,获取用于抵扣该目标账单的目标资源;The second obtaining
核销模块504,用于通过核销该目标资源,对该目标账单的资源数值进行抵扣。The write-off
在一些实施例中,该第一资源的数量为多个,且多个第一资源为多种类型的资源;该第二获取模块503包括:In some embodiments, the number of the first resources is multiple, and the multiple first resources are multiple types of resources; the second obtaining
第一确定单元,用于根据每个第一资源的类型,确定每个第一资源被核销的优先级;a first determining unit, configured to determine, according to the type of each first resource, the priority of each first resource being written off;
选择单元,用于根据每个第一资源被核销的优先级,从多个第一资源中选择优先级满足条件的至少一个第一资源;a selection unit, configured to select at least one first resource whose priority satisfies a condition from a plurality of first resources according to the priority of each first resource being written off;
获取单元,用于从该至少一个第一资源中,获取用于抵扣该目标账单的目标资源。An obtaining unit, configured to obtain, from the at least one first resource, a target resource for deducting the target bill.
在一些实施例中,其特征在于,该至少一个第一资源均为第一类型的资源,该第一类型的资源用于通过该第一资源在该目标商家中获取第一物品明细的物品;In some embodiments, the at least one first resource is a resource of a first type, and the resource of the first type is used to obtain the item with the first item details in the target merchant through the first resource;
该第二获取模块503包括:The second obtaining
第二确定单元,用于对于每个第一资源,确定该第一资源对应的第一物品明细;a second determining unit, configured to, for each first resource, determine the first item details corresponding to the first resource;
第三确定单元,用于根据该目标账单的第二物品明细以及该每个第一资源对应的第一物品明细,从该至少一个资源中确定物品明细与该第二物品明细匹配的至少一个目标资源。a third determining unit, configured to determine at least one target whose item details match the second item details from the at least one resource according to the second item details of the target bill and the first item details corresponding to each first resource resource.
在一些实施例中,该至少一个第一资源均为第二类型的资源,该第二类型的资源用于通过该第一资源在该目标商家中获取第一资源数值的物品;In some embodiments, the at least one first resource is a second type of resource, and the second type of resource is used to obtain items of the first resource value from the target merchant through the first resource;
该第二获取模块503包括:The second obtaining
第四确定单元,用于对于每个第一资源,确定该第一资源对应的第一资源数值;a fourth determining unit, configured to determine, for each first resource, a first resource value corresponding to the first resource;
第五确定单元,用于根据该目标账单对应的第二资源数值以及该每个第一资源对应的第一资源数值,从该至少一个资源中确定资源数值与该第二资源数值匹配的至少一个目标资源。A fifth determining unit, configured to determine at least one resource value matching the second resource value from the at least one resource according to the second resource value corresponding to the target bill and the first resource value corresponding to each first resource target resource.
在一些实施例中,该第一确定单元,用于对于每个第一资源,根据该第一资源的类型,确定该第一资源被使用的广泛度,确定该广泛度匹配的优先级,该优先级与该广泛度呈负相关;或者,In some embodiments, the first determining unit is configured to, for each first resource, determine the extent to which the first resource is used according to the type of the first resource, and determine the priority of the extent matching, the Priority is inversely related to this breadth; or,
该第一确定单元,用于对于每个第一资源,根据该第一资源的类型,确定该第一资源被使用的广泛度,根据该广泛度和该第一资源的剩余有效时长,确定该第一资源被核销的优先级,该优先级分别与该广泛度和该剩余有效时长均呈负相关。The first determining unit is configured to, for each first resource, determine the extent to which the first resource is used according to the type of the first resource, and determine the extent of use of the first resource according to the extent and the remaining valid duration of the first resource. The priority at which the first resource is written off, and the priority is negatively correlated with both the breadth and the remaining valid duration.
在一些实施例中,该第一确定模块502包括:In some embodiments, the first determining
第六确定单元,用于根据该人脸图像,确定该目标账号;a sixth determining unit, used for determining the target account according to the face image;
第七确定单元,用于根据该目标账号,确定该目标账号的至少一个第二资源,该第二资源为该目标账号通过该互联网平台获取的,且未核销的资源;a seventh determining unit, configured to determine at least one second resource of the target account according to the target account, where the second resource is a resource that is acquired by the target account through the Internet platform and has not been written off;
第八确定单元,用于根据该目标商家的商家标识,从该至少一个第二资源中确定该至少一个第一资源。The eighth determining unit is configured to determine the at least one first resource from the at least one second resource according to the merchant identifier of the target merchant.
在一些实施例中,该第六确定单元,用于根据该人脸图像,识别出该目标用户的身份信息,基于该身份信息,从身份信息和用户账号的对应关系中确定该目标账号;或者,In some embodiments, the sixth determining unit is configured to identify the identity information of the target user according to the face image, and based on the identity information, determine the target account from the correspondence between the identity information and the user account; or ,
该第六确定单元,用于基于该人脸图像,从人脸图像和用户账号的对应关系中确定该目标账号。The sixth determining unit is configured to determine the target account from the correspondence between the face image and the user account based on the face image.
在一些实施例中,该装置还包括:In some embodiments, the apparatus further includes:
第一展示模块,用于响应于物品选择操作,展示选择界面,该选择界面包括至少一个待选择的物品;a first display module, configured to display a selection interface in response to an item selection operation, the selection interface including at least one item to be selected;
第三获取模块,用于获取基于该选择界面被选择的物品;a third acquisition module, configured to acquire the item selected based on the selection interface;
生成模块,用于响应于基于该被选择的物品触发的确认操作,生成该被选择的物品对应的目标账单,且确定接收到该资源转移操作。The generating module is configured to, in response to the confirmation operation triggered based on the selected item, generate a target bill corresponding to the selected item, and determine that the resource transfer operation is received.
在一些实施例中,该第一获取模块501包括:In some embodiments, the first obtaining
调用单元,用于调用拍摄控件,通过该拍摄控件采集该目标用户的人脸图像;或者,a calling unit for calling a shooting control, and collecting the face image of the target user through the shooting control; or,
采集单元,用于在该目标用户基于该选择界面选择物品的过程中,采集包含该目标用户的视频画面,从该视频画面中获取该目标用户的人脸图像。The collection unit is configured to collect a video image including the target user during the process of the target user selecting an item based on the selection interface, and obtain a face image of the target user from the video image.
在一些实施例中,该装置还包括:In some embodiments, the apparatus further includes:
第二展示模块,用于在该目标商家准备好该目标账单中的物品之后,展示资源转移界面,该资源转移界面中显示该目标账单的账单标识和资源转移选项;The second display module is configured to display the resource transfer interface after the target merchant prepares the items in the target bill, and the resource transfer interface displays the bill identifier and resource transfer options of the target bill;
第二确定模块,用于响应于该资源转移选项被触发,确定接收到该目标账单的资源转移操作。The second determination module is configured to determine, in response to the resource transfer option being triggered, a resource transfer operation that has received the target bill.
在一些实施例中,该核销模块504,用于将该目标资源的状态设置为已核销,且将该目标账单的状态设置为已进行资源数值转移。In some embodiments, the write-off
在一些实施例中,该装置还包括:In some embodiments, the apparatus further includes:
第三展示模块,用于展示核销确认界面,该核销确认界面显示有该目标资源的订单信息,用于对该订单信息进行确认;The third display module is used to display the write-off confirmation interface, where the write-off confirmation interface displays the order information of the target resource and is used to confirm the order information;
该核销模块504,还用于响应于基于该订单信息触发的确认操作,通过核销该目标资源,对该目标账单的资源数值进行抵扣。The write-off
在本公开实施例中,通过在对目标账单进行资源转移的过程中,直接通过获取目标用户的人脸图像来确定该目标用户对应的目标账号的至少一个第一资源,从而直接从该至少一个第一资源中获取用于核销该目标账单的目标资源,这样只需要扫描用户的人脸图像,用户无需通过一系列操作向商家展示该订单信息,从而提高了目标账单的核销效率。In the embodiment of the present disclosure, in the process of transferring resources to the target bill, at least one first resource of the target account corresponding to the target user is determined by directly acquiring the face image of the target user, so that the at least one first resource is directly obtained from the at least one target account. The target resource for writing off the target bill is obtained from the first resource, so that only the face image of the user needs to be scanned, and the user does not need to display the order information to the merchant through a series of operations, thereby improving the writing-off efficiency of the target bill.
需要说明的是:上述实施例提供的资源核销装置在资源核销时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将终端的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的资源核销装置与资源核销方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the resource write-off device provided by the above embodiment is used for resource write-off, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated to different functional modules as required. , that is, dividing the internal structure of the terminal into different functional modules to complete all or part of the functions described above. In addition, the resource write-off device and the resource write-off method provided in the above embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
图6示出了本公开一个示例性实施例提供的终端600的结构框图。该终端600可以是:智能手机、平板电脑、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio LayerIV,动态影像专家压缩标准音频层面4)播放器、笔记本电脑或台式电脑。终端600还可能被称为用户设备、便携式终端、膝上型终端、台式终端等其他名称。FIG. 6 shows a structural block diagram of a terminal 600 provided by an exemplary embodiment of the present disclosure. The terminal 600 can be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, the standard audio layer of the moving picture experts compression), MP4 (Moving Picture Experts Group Audio Layer IV, the standard audio layer of the moving picture experts compression) 4) Player, laptop or desktop computer.
通常,终端600包括有:处理器601和存储器602。Generally, the terminal 600 includes: a
处理器601可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器601可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器601也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central ProcessingUnit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器601可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器601还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。The
存储器602可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器602还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器602中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被处理器601所执行以实现本公开中方法实施例提供资源核销方法。
在一些实施例中,终端600还可选包括有:外围设备接口603和至少一个外围设备。处理器601、存储器602和外围设备接口603之间可以通过总线或信号线相连。各个外围设备可以通过总线、信号线或电路板与外围设备接口603相连。具体地,外围设备包括:射频电路604、触摸显示屏605、摄像头606摄像头组件606、音频电路607、定位组件608和电源609中的至少一种。In some embodiments, the terminal 600 may optionally further include: a
外围设备接口603可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器601和存储器602。在一些实施例中,处理器601、存储器602和外围设备接口603被集成在同一芯片或电路板上;在一些其他实施例中,处理器601、存储器602和外围设备接口603中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。The
射频电路604用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路604通过电磁信号与通信网络以及其他通信设备进行通信。射频电路604将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。可选地,射频电路604包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等等。射频电路604可以通过至少一种无线通信协议来与其它终端进行通信。该无线通信协议包括但不限于:万维网、城域网、内联网、各代移动通信网络(2G、3G、4G及5G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路604还可以包括NFC(Near Field Communication,近距离无线通信)有关的电路,本公开对此不加以限定。The
显示屏605用于显示UI(User Interface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。当显示屏605是触摸显示屏时,显示屏605还具有采集在显示屏605的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至处理器601进行处理。此时,显示屏605还可以用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏605可以为一个,设置终端600的前面板;在另一些实施例中,显示屏605可以为至少两个,分别设置在终端600的不同表面或呈折叠设计;在再一些实施例中,显示屏605可以是柔性显示屏,设置在终端600的弯曲表面上或折叠面上。甚至,显示屏605还可以设置成非矩形的不规则图形,也即异形屏。显示屏605可以采用LCD(LiquidCrystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。The
摄像头组件606用于采集图像或视频。可选地,摄像头组件606包括前置摄像头和后置摄像头。通常,前置摄像头设置在终端的前面板,后置摄像头设置在终端的背面。在一些实施例中,后置摄像头为至少两个,分别为主摄像头、景深摄像头、广角摄像头、长焦摄像头中的任意一种,以实现主摄像头和景深摄像头融合实现背景虚化功能、主摄像头和广角摄像头融合实现全景拍摄以及VR(Virtual Reality,虚拟现实)拍摄功能或者其它融合拍摄功能。在一些实施例中,摄像头组件606还可以包括闪光灯。闪光灯可以是单色温闪光灯,也可以是双色温闪光灯。双色温闪光灯是指暖光闪光灯和冷光闪光灯的组合,可以用于不同色温下的光线补偿。The
音频电路607可以包括麦克风和扬声器。麦克风用于采集用户及环境的声波,并将声波转换为电信号输入至处理器601进行处理,或者输入至射频电路604以实现语音通信。出于立体声采集或降噪的目的,麦克风可以为多个,分别设置在终端600的不同部位。麦克风还可以是阵列麦克风或全向采集型麦克风。扬声器则用于将来自处理器601或射频电路604的电信号转换为声波。扬声器可以是传统的薄膜扬声器,也可以是压电陶瓷扬声器。当扬声器是压电陶瓷扬声器时,不仅可以将电信号转换为人类可听见的声波,也可以将电信号转换为人类听不见的声波以进行测距等用途。在一些实施例中,音频电路607还可以包括耳机插孔。
定位组件608用于定位终端600的当前地理位置,以实现导航或LBS(LocationBased Service,基于位置的服务)。定位组件608可以是基于美国的GPS(GlobalPositioning System,全球定位系统)、中国的北斗系统、俄罗斯的格雷纳斯系统或俄罗斯欧盟的伽利略系统的定位组件。The
电源609用于为终端600中的各个组件进行供电。电源609可以是交流电、直流电、一次性电池或可充电电池。当电源609包括可充电电池时,该可充电电池可以是支持有线充电电池或无线充电电池。有线充电电池是通过有线线路充电的电池,无线充电电池是通过无线线圈充电的电池。该可充电电池还可以用于支持快充技术。The
在一些实施例中,终端600还包括有一个或多个传感器610。该一个或多个传感器610包括但不限于:加速度传感器611、陀螺仪传感器612、压力传感器613、指纹传感器614、光学传感器615以及接近传感器616。In some embodiments, terminal 600 also includes one or more sensors 610 . The one or more sensors 610 include, but are not limited to, an acceleration sensor 611 , a gyro sensor 612 , a pressure sensor 613 , a fingerprint sensor 614 , an optical sensor 615 and a proximity sensor 616 .
加速度传感器611可以检测以终端600建立的坐标系的三个坐标轴上的加速度大小。比如,加速度传感器611可以用于检测重力加速度在三个坐标轴上的分量。处理器601可以根据加速度传感器611采集的重力加速度信号,控制触摸显示屏605以横向视图或纵向视图进行用户界面的显示。加速度传感器611还可以用于游戏或者用户的运动数据的采集。The acceleration sensor 611 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the
陀螺仪传感器612可以检测终端600的机体方向及转动角度,陀螺仪传感器612可以与加速度传感器611协同采集用户对终端600的3D动作。处理器601根据陀螺仪传感器612采集的数据,可以实现如下功能:动作感应(比如根据用户的倾斜操作来改变UI)、拍摄时的图像稳定、游戏控制以及惯性导航。The gyroscope sensor 612 can detect the body direction and rotation angle of the terminal 600 , and the gyroscope sensor 612 can cooperate with the acceleration sensor 611 to collect 3D actions of the user on the
压力传感器613可以设置在终端600的侧边框和/或触摸显示屏605的下层。当压力传感器613设置在终端600的侧边框时,可以检测用户对终端600的握持信号,由处理器601根据压力传感器613采集的握持信号进行左右手识别或快捷操作。当压力传感器613设置在触摸显示屏605的下层时,由处理器601根据用户对触摸显示屏605的压力操作,实现对UI界面上的可操作性控件进行控制。可操作性控件包括按钮控件、滚动条控件、图标控件、菜单控件中的至少一种。The pressure sensor 613 may be disposed on the side frame of the terminal 600 and/or the lower layer of the
指纹传感器614用于采集用户的指纹,由处理器601根据指纹传感器614采集到的指纹识别用户的身份,或者,由指纹传感器614根据采集到的指纹识别用户的身份。在识别出用户的身份为可信身份时,由处理器601授权该用户执行相关的敏感操作,该敏感操作包括解锁屏幕、查看加密信息、下载软件、支付及更改设置等。指纹传感器614可以被设置终端600的正面、背面或侧面。当终端600上设置有物理按键或厂商Logo时,指纹传感器614可以与物理按键或厂商Logo集成在一起。The fingerprint sensor 614 is used to collect the user's fingerprint, and the
光学传感器615用于采集环境光强度。在一个实施例中,处理器601可以根据光学传感器615采集的环境光强度,控制触摸显示屏605的显示亮度。具体地,当环境光强度较高时,调高触摸显示屏605的显示亮度;当环境光强度较低时,调低触摸显示屏605的显示亮度。在另一个实施例中,处理器601还可以根据光学传感器615采集的环境光强度,动态调整摄像头组件606的拍摄参数。Optical sensor 615 is used to collect ambient light intensity. In one embodiment, the
接近传感器616,也称距离传感器,通常设置在终端600的前面板。接近传感器616用于采集用户与终端600的正面之间的距离。在一个实施例中,当接近传感器616检测到用户与终端600的正面之间的距离逐渐变小时,由处理器601控制触摸显示屏605从亮屏状态切换为息屏状态;当接近传感器616检测到用户与终端600的正面之间的距离逐渐变大时,由处理器601控制触摸显示屏605从息屏状态切换为亮屏状态。A proximity sensor 616 , also called a distance sensor, is usually provided on the front panel of the terminal 600 . The proximity sensor 616 is used to collect the distance between the user and the front of the terminal 600 . In one embodiment, when the proximity sensor 616 detects that the distance between the user and the front of the terminal 600 gradually decreases, the
本领域技术人员可以理解,图6中示出的结构并不构成对终端600的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art can understand that the structure shown in FIG. 6 does not constitute a limitation on the terminal 600, and may include more or less components than the one shown, or combine some components, or adopt different component arrangements.
在示例性实施例中,还提供了一种计算机可读存储介质,计算机可读存储介质中存储至少一条程序代码,至少一条程序代码由终端加载并执行,以实现上述实施例中多媒体资源展示方法。该计算机可读存储介质可以是存储器。例如,该计算机可读存储介质可以是ROM(Read-Only Memory,只读存储器)、RAM(Random Access Memory,随机存取存储器)、CD-ROM(Compact Disc Read-Only Memory,紧凑型光盘只读储存器)、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a computer-readable storage medium is also provided. The computer-readable storage medium stores at least one piece of program code, and the at least one piece of program code is loaded and executed by the terminal, so as to realize the multimedia resource display method in the foregoing embodiment. . The computer-readable storage medium may be a memory. For example, the computer-readable storage medium may be ROM (Read-Only Memory, read-only memory), RAM (Random Access Memory, random access memory), CD-ROM (Compact Disc Read-Only Memory, compact disc read-only memory) storage), magnetic tapes, floppy disks, and optical data storage devices, etc.
本申请实施例还提供了一种计算机可读介质,该计算机可读介质存储有至少一条程序代码,该至少一条程序代码由该处理器加载并执行以实现如上各个实施例示出的资源核销方法。Embodiments of the present application further provide a computer-readable medium, where at least one program code is stored in the computer-readable medium, and the at least one program code is loaded and executed by the processor to implement the resource write-off methods shown in the above embodiments .
本申请实施例还提供了一种计算机程序产品,该计算机程序产品存储有至少一条程序代码,该至少一条程序代码由该处理器加载并执行以实现如上各个实施例示出的资源核销方法。Embodiments of the present application further provide a computer program product, where the computer program product stores at least one piece of program code, and the at least one piece of program code is loaded and executed by the processor to implement the resource write-off methods shown in the above embodiments.
在一些实施例中,本申请实施例所涉及的计算机程序可被部署在一个计算机设备上执行,或者在位于一个地点的多个计算机设备上执行,又或者,在分布在多个地点且通过通信网络互连的多个计算机设备上执行,分布在多个地点且通过通信网络互连的多个计算机设备可以组成区块链系统。In some embodiments, the computer programs involved in the embodiments of the present application may be deployed and executed on one computer device, or executed on multiple computer devices located at one location, or distributed in multiple locations and communicated through Executed on multiple computer devices interconnected by a network, and multiple computer devices distributed in multiple locations and interconnected through a communication network can form a blockchain system.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,该程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The storage medium can be read-only memory, magnetic disk or optical disk, etc.
以上内容仅为本公开的可选实施例,并不用以限制本公开,凡在本公开的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The above contents are only optional embodiments of the present disclosure, and are not intended to limit the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present disclosure should be included in the protection scope of the present disclosure. within.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110600634.0ACN113344617A (en) | 2021-05-31 | 2021-05-31 | Resource verification method, device, terminal and storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110600634.0ACN113344617A (en) | 2021-05-31 | 2021-05-31 | Resource verification method, device, terminal and storage medium |
| Publication Number | Publication Date |
|---|---|
| CN113344617Atrue CN113344617A (en) | 2021-09-03 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110600634.0APendingCN113344617A (en) | 2021-05-31 | 2021-05-31 | Resource verification method, device, terminal and storage medium |
| Country | Link |
|---|---|
| CN (1) | CN113344617A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114004662A (en)* | 2021-12-31 | 2022-02-01 | 浙江口碑网络技术有限公司 | Resource verification and cancellation method and device, storage medium and computing equipment |
| CN118505218A (en)* | 2023-04-23 | 2024-08-16 | 腾讯科技(深圳)有限公司 | An electronic voucher processing method, related device, equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114004662A (en)* | 2021-12-31 | 2022-02-01 | 浙江口碑网络技术有限公司 | Resource verification and cancellation method and device, storage medium and computing equipment |
| CN118505218A (en)* | 2023-04-23 | 2024-08-16 | 腾讯科技(深圳)有限公司 | An electronic voucher processing method, related device, equipment and storage medium |
| Publication | Publication Date | Title |
|---|---|---|
| CN110705983B (en) | Method, device, equipment and storage medium for code scanning payment processing | |
| CN110288332A (en) | System, method, device, equipment and storage medium for bank card binding | |
| WO2021164321A1 (en) | Block processing method and apparatus, and data query method and apparatus based on blockchain | |
| CN110996111A (en) | Method, device and system for sending order by live broadcast | |
| CN110189137A (en) | Method, device, equipment and storage medium for facial recognition payment | |
| CN112616091A (en) | Virtual article sending method and device, computer equipment and storage medium | |
| CN111028071B (en) | Bill processing method and device, electronic equipment and storage medium | |
| CN110147380A (en) | Data-updating method, device, server and storage medium | |
| CN110049525A (en) | Method for connecting network, device, electronic equipment and medium | |
| CN108717365A (en) | The method and apparatus for executing function in the application | |
| CN110517032A (en) | Resource transfer method, system, device, server and storage medium | |
| CN114296824A (en) | Page information configuration method, device, equipment and computer readable storage medium | |
| CN111881423A (en) | Method, device and system for limiting function use authorization | |
| CN111831385A (en) | Business credit information processing method, device, equipment and storage medium | |
| CN112533015A (en) | Live broadcast interaction method, device, equipment and storage medium | |
| CN113344617A (en) | Resource verification method, device, terminal and storage medium | |
| CN110290191B (en) | Resource transfer result processing method, device, server, terminal and storage medium | |
| CN111582993A (en) | Method, device, electronic device and storage medium for acquiring target object | |
| CN111523878A (en) | Service processing method, device, system and storage medium | |
| CN109995804B (en) | Target resource information display method, information providing method and device | |
| CN110659895A (en) | Payment methods, devices, electronic equipment and media | |
| CN112036887A (en) | Method, device, device and storage medium for resource transfer | |
| CN114140105A (en) | Resource transfer method, device, equipment and computer readable storage medium | |
| CN112001513A (en) | Resource acquisition method, device, terminal and storage medium | |
| CN111681098A (en) | Resource transfer method, device, server and computer readable storage medium |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| WD01 | Invention patent application deemed withdrawn after publication | ||
| WD01 | Invention patent application deemed withdrawn after publication | Application publication date:20210903 |