Embodiment
The embodiment of the present application technical scheme can realize related service among different users, such as with realization
" red packet " distributing service, " reward voucher " distributing service etc., wherein red packet distributing service can be specifically
Refer to, a user by way of providing red packet by by the fund of oneself or other virtual objects etc., being given
Other users.
In a specific application scenarios, so that user provides red packet in the message session page as an example.As schemed
Shown in 1A, user needs to first click on beside the message edit box of message session page bottomDeng
Mark, to recall the menu interface shown in Figure 1B the latter half, then by clicking in the menu interface
" red packet " icon after, jump to shown in Fig. 1 C red packet configuration the page, so as to complete to red packet
Configuration and granting.
It can be seen that, on the one hand above-mentioned red packet distribution process is very cumbersome, is unfavorable for user's operation;On the other hand,
When granting fund, as shown in figure iD, user is easy to occur directly in message
The situation for the principal amount provided is wished in input in edit box, so that cause red packet granting to fail, Er Qiexu
Real red packet granting is carried out again through said process to operate, influence the usage experience of user.
Therefore, the application is upper in correlation technique to solve by optimizing the batch operation to business object
State problem.In order the application to be further described, there is provided the following example:
Fig. 2 is a kind of flow chart of the distribution method of business object of the exemplary embodiment of the application one, such as
Shown in Fig. 2, this method is applied in electronic equipment, may comprise steps of:
Step 202, the pre-set user operation for the message edit box in the page is detected;
Step 204, the related function choosing-item of batch operation to business object is shown in the page;
Step 206, in response to the trigger action for the function choosing-item, distribute described to pre-set user
Business object.
By above-described embodiment, user only needs to carry out the message edit box in the page shown in electronic equipment
Operation, the electronic equipment is the distribution requirements and intention that may recognize that user to business object, without
User individually performs page layout switch and adjustment operation as shown in figures 1 a-1d, you can be directly realized by business
The batch operation (such as red packet is provided) of object, helps to simplify user's operation, lifting Consumer's Experience.
In embodiments herein, the business of required realization can include the distributing service of " red packet ",
Below by taking the business as an example, the technical scheme to the application is described in detail;Certainly, art technology
Personnel should be understood that when application environment, business scenario etc. change, the technical side of the application
Case can also be applied to other business realizing processes, and the application is not limited this.
Fig. 3 is the flow chart of the distribution method of another business object of the exemplary embodiment of the application one,
As shown in figure 3, this method is applied in electronic equipment, it may comprise steps of:
Step 302, user's operation for message edit box is detected.
In the present embodiment, user can realize the edit operations such as the input of message in message edit box.
According to practical application request, message edit box may reside in any type of page;It is exemplary one
In embodiment, message edit box may reside in the message session page, pass through message meeting below with user
Talk about exemplified by the message edit box progress red packet granting in the page, the technical scheme of the application is described in detail.
For example, it is assumed that Fig. 4 shows that user is directed to the message session of group's " be earnest about one's work group "
The message edit box of the rectangle positioned at page bottom is included in the page, the message session page, user can be with
The message edit box is clicked on etc., electronic equipment is detected user's operation.Certainly, message editing
Shape, specification and position in the page of frame etc., can according to the actual requirements wait and be configured,
It can't influence the technical scheme of the application, and the application is not also limited this.
Step 304, the action type of identification user operation;Wherein, when user's operation is single-click operation,
Step 306A is transferred to, when user's operation is double click operation, step 306B is transferred to.
In the present embodiment, it is predefined by what is operated to user, and the user detected in real time is grasped
The match cognization of work, it may be determined that go out the action type of user's operation, such as click, double-click.Certainly,
Only illustrated herein by taking " clicking " and " double-click " as an example, actually any type of user's operation,
In the technical scheme that can apply to the application, such as " long-press ", " meet the touch of desired guiding trajectory
Operation " etc., it is only necessary to there is the difference between step 306A and step 306B, i.e., being capable of reasonable expectation
The operation for going out user is intended to.
Step 306A, is operated according to user, is performed and is chosen or positioning action.
In the present embodiment, when user performs single-click operation to message edit box, it can be assumed that to use
The operation at family is intended that to be chosen to the message edit box, or the cursor of the message editing inframe is carried out
Positioning.
For " selection " operation.For example, when user is in the message session page shown in Fig. 4,
User can not still carry out the operation such as inputting in message edit box;And when user is carried out to message edit box
During single-click operation, electronic equipment can be determined that the message is have chosen in the message session page for user compiles
Volume frame, thus the message session page will recall input keyboard shown in Fig. 5 A, and in message edit box
Cursor is inside shown, then user can realize the message in message editing inframe by the keyboard shown in Fig. 5 A
The operation of the message editings such as input.
For " positioning " operation.For example, as shown in Figure 5 B, it is assumed that in message edit box originally
Include the input content, and cursor is located at the right side of " may you be hapy and prosperous " such as word " may you be hapy and prosperous ";
So, after user performs clicking operation between " respectful " and " happiness ", electronic equipment can be determined that for
User wishes to reposition cursor, so that cursor position to be moved to " respectful " shown in Fig. 5 C
Between " happiness ", so that user performs message editing operation.
In fact, positioning of selection, cursor for message edit box etc., is realization in correlation technique
The operating process of message editing, may be referred to the technical scheme provided in correlation technique, here is omitted.
Step 306B, is operated according to user, it is determined that there is red packet provides demand.
In the present embodiment, when user performs double click operation to message edit box, it can be assumed that to use
There is the demand (the red packet granting for deducing user is intended to) of red packet granting in family, thus coordinate the application
The allocative decision of the business object of proposition, it is possible to achieve more simplified, efficiently red packet granting operation.
Step 308, function choosing-item is shown, the function choosing-item is related to the granting operation of red packet.
In the present embodiment, as shown in Figure 6A, when user for message edit box performs double click operation
When, the function choosing-item of " giving bonus " can be shown, then user is somebody's turn to do the work(of " giving bonus " by choosing
Energy option, you can realize corresponding red packet granting operation.
Wherein, from Fig. 6 A, in addition to the function choosing-item of " giving bonus ", it can also show all
Such as " stickup " function choosing-item related to the message editing operation of the message edit box;In other words, phase
The mode that resurrects for function choosing-items such as " stickups " is in fact provided in the technology of pass, such as message is compiled
Collect double click operation of frame etc., then the technical scheme based on the application, it can be understood as in correlation technique
On the basis of with the addition of the function choosing-item of " giving bonus ", so as to help to simplify the red packet granting operation of user.
Certainly, the function choosing-item " given bonus " can also be different from correlation techniques such as " stickups " and provide
Function choosing-item, such as user can resurrect the function choosing-item of " giving bonus " by double click operation, and
The function choosing-item of " stickup " is resurrected by long-press operation.
Step 310, red packet granting is completed.
In one exemplary embodiment, when detecting the user couple work(related to the batch operation of business object
During the trigger action of energy option, electronic equipment can be jumped to by the above-mentioned page (such as message session page)
The related preset configuration page of batch operation to business object;Then, received according to the preset configuration page
The user configuration information arrived, business object is distributed to pre-set user.In other words, as shown in Figure 6A, when
When detecting the trigger action for the function choosing-item that user is directed to " giving bonus ", such as user clicks the work(
Energy option, electronic equipment can be as the red packet shown in the message session page jump to Fig. 1 C being presently in
The page is configured, and is configured in the red packet configuration page in face of the required red packet provided, red packet is then realized
Granting operation.
In fact, in the above-described embodiments, the function choosing-item of " giving bonus " is by as " red packet is configured
The redirected link of the page ", and compared to " red packet " icon that phase same-action is played in Figure 1B, due to
The function choosing-item of " giving bonus " in the application is aroused by the operation for message edit box, because
And the differentiation of " red packet granting operation " between " message editing operation " can be reduced, not only can be with
Simplify operation complexity of the user when providing red packet, and help avoid straight shown in generation Fig. 1 D
Connect the situation of red packet granting unsuccessfully caused by the input red packet amount of money.
In a further exemplary embodiment, the function choosing-item related to the batch operation of business object is being realized
During linking functions, in addition to redirecting between being directly realized by the page, (can also such as it disappear in the above-mentioned page
Cease conversation page) the middle display suspension allocation window related to the batch operation of business object;Then, root
The user configuration information received according to suspension allocation window, business object is distributed to pre-set user.In other words,
As shown in Figure 6B, it can be shown by the form of suspension windows " the red packet configuration page " so that user
When configuring red packet in the red packet configuration page, remain able to visually view " lower section "
The message session page shown, contribute to enhancing " the message session page " and " the red packet configuration page " it
Between relevance, that is, strengthen " message communication " and " red packet granting " between relevance.
In the above-described embodiments, can be by the message when the page that user operates is the message session page
At least one of all communication users of conversation page association provide object as red packet, that is, Fig. 2
" pre-set user " in the step 206 of illustrated embodiment.Wherein, for the message session of group type
The page, " all communication users of message session page association " can be all members of the group;It is right
In the message session page of personal type, " all communication users of message session page association " can be
Session both sides.
By taking " group type " as an example.In embodiment as shown in Figure 6B, when in group totally 33 into
During member, if the red packet quantity of user configuring is also 33, then all group members will be used as red packet
Object is provided, equivalent to " pre-set user " in the step 206 of embodiment illustrated in fig. 2.Correspondingly,
For " common " type, 33 group members are by 10 yuan of red packet funds of mean allocation;And for
For " random " type, 10 yuan of red packet funds can be equally distributed to 33 group members, but each group
The red packet amount of the fund of the actual acquisition of group membership is is randomly assigned, and not mean allocation.
Certainly, red packet number can also be less than the quantity of group member, such as red packet number is less than 33,
So simultaneously not all group member all will provide object as red packet.Correspondingly, can be with a kind of mode
The red packet of " arrive first and first obtain " is taken to provide form;And under another way, as shown in Figure 6 C, can be with
Take the red packet of " orientation is provided " to provide form, i.e. user and be directly determined as the group that red packet provides object
Group membership, than 5 people such as user " little Bai " as shown in Figure 6 C, user'ss " small black ", then only
These group members can get red packet, and other group members can not get red packet.
By taking " personal type " as an example.In the personal conversation page shown in Fig. 7, it again may be by
The embodiment shown in Fig. 3 is stated to realize red packet granting (or batch operation of other kinds of business object),
Here is omitted.
In addition, in the above-described embodiments, when including input content in message edit box, if detecting
For the pre-set user operation of message edit box, such as user performs double click operation to message edit box, then
The input content of the message editing inframe, or the part chosen in input content by user can be obtained,
And the content being acquired is added to the related description information of batch operation to business object, such as to red
Wrap the description information provided.
As shown in Figure 8 A, it is assumed that the input content included in message edit box is word " everybody in New Year
Happy~~~", after user is detected to the double click operation of message edit box, it can show " giving bonus "
Function choosing-item;So, when user clicks on the function choosing-item for being somebody's turn to do " giving bonus ", Fig. 8 B can be shown
Shown suspension windows, it is possible to realize that red packet is configured by the suspension windows, and in the suspension windows
The description information that above-mentioned input content " happy new year for everybody~~~" is provided as red packet, should
Description information can be shown as:After hot coating is provided, as shown in Figure 8 C, group member is being used as
In the message session page of user " little Bai ", it can be seen that the red packet provided by above-mentioned user " in vain "
Description information comprising " happy new year for everybody~~~" in message, and the red packet message, then user is " small
In vain " can be by the triggering to the red packet message, to get corresponding red packet fund etc..
In the embodiment shown in Fig. 8 B-8C, by the input content of message editing inframe it is overall as
Red packet provide description information, actually user can also to this input content choose.Such as scheme
Shown in 8D, user can only choose " happy new year for everybody " and omit "~~~", then in Fig. 8 E institutes
In the message session page of the user " little Bai " shown, it can be seen that provided by above-mentioned user " in vain "
The description information of " happy new year for everybody " is included in red packet message, and the red packet message.
Fig. 9 shows the schematic configuration diagram of the electronic equipment of the exemplary embodiment according to the application.Please
With reference to Fig. 9, in hardware view, the electronic equipment includes processor, internal bus, network interface, interior
Deposit and nonvolatile memory, the hardware required for other business is also possible that certainly.Processor from
Corresponding computer program is read in nonvolatile memory into internal memory and then is run, on logic level
Form the distributor of business object.Certainly, in addition to software realization mode, the application is not precluded from
Mode of other implementations, such as logical device or software and hardware combining etc., that is to say, that following place
The executive agent of reason flow is not limited to each logic unit or hardware or logical device.
Figure 10 is refer to, in Software Implementation, the distributor of the business object can include detection
Unit, display unit and allocation unit.Wherein:
Detection unit, detects the pre-set user operation for the message edit box in the page;
Display unit, shows the related function choosing-item of batch operation to business object in the page;
Allocation unit, in response to the trigger action for the function choosing-item, distributes described to pre-set user
Business object.
Optionally, the allocation unit specifically for:
When detecting the trigger action, by the page jump to the batch operation phase with business object
The preset configuration page of pass;
The user configuration information received according to the preset configuration page, the industry is distributed to pre-set user
Business object.
Optionally, the allocation unit specifically for:
The suspension allocation window related to the batch operation of business object is shown in the page;
The user configuration information received according to the suspension allocation window, the industry is distributed to pre-set user
Business object.
Optionally, the page includes the message session page.
Optionally, in all communication users that the pre-set user associates for the message session page at least
One of.
Optionally, in addition to:
Acquiring unit, obtains the input content of the message editing inframe, or in the input content
The part chosen by user;
Adding device, is added to the related description of batch operation to business object by the content being acquired and believes
Breath.
In a typical configuration, computing device include one or more processors (CPU), input/
Output interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
And/or the form, such as read-only storage (ROM) or flash memory (flash such as Nonvolatile memory (RAM)
RAM).Internal memory is the example of computer-readable medium.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by
Any method or technique come realize information store.Information can be computer-readable instruction, data structure,
The module of program or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory
(PRAM), static RAM (SRAM), dynamic random access memory (DRAM),
Other kinds of random access memory (RAM), read-only storage (ROM), electrically erasable
Read-only storage (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage
(CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic
Disk storage or other magnetic storage apparatus or any other non-transmission medium, can be counted available for storage
Calculate the information that equipment is accessed.Defined according to herein, computer-readable medium does not include temporary computer can
Read the data-signal and carrier wave of media (transitory media), such as modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant be intended to it is non-
It is exclusive to include, so that process, method, commodity or equipment including a series of key elements are not only
Including those key elements, but also other key elements including being not expressly set out, or also include to be this
Process, method, commodity or the intrinsic key element of equipment.In the absence of more restrictions, by language
The key element that sentence "including a ..." is limited, it is not excluded that in the process including the key element, method, business
Also there is other identical element in product or equipment.
The preferred embodiment of the application is the foregoing is only, it is all at this not to limit the application
Within the spirit and principle of application, any modification, equivalent substitution and improvements done etc. should be included in
Within the scope of the application protection.