CN116935504A - Card punching method, electronic device and computer readable storage medium - Google Patents
Card punching method, electronic device and computer readable storage medium Download PDFInfo
- Publication number
- CN116935504A CN116935504A CN202310841421.6A CN202310841421A CN116935504A CN 116935504 A CN116935504 A CN 116935504A CN 202310841421 A CN202310841421 A CN 202310841421A CN 116935504 A CN116935504 A CN 116935504A
- Authority
- CN
- China
- Prior art keywords
- punching
- network
- card
- user
- city
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000004080 punching Methods 0.000 title claims abstract description 359
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000004590 computer program Methods 0.000 claims description 13
- 230000000875 corresponding effect Effects 0.000 description 43
- 230000006870 function Effects 0.000 description 28
- 238000007726 management method Methods 0.000 description 21
- 239000010410 layer Substances 0.000 description 18
- 238000012545 processing Methods 0.000 description 11
- 230000001965 increasing effect Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 238000000060 site-specific infrared dichroism spectroscopy Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 229920001621 AMOLED Polymers 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000003203 everyday effect Effects 0.000 description 3
- 230000033001 locomotion Effects 0.000 description 3
- 230000005236 sound signal Effects 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 239000012792 core layer Substances 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 230000002354 daily effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000004807 localization Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 230000003238 somatosensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C1/00—Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people
- G07C1/10—Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people together with the recording, indicating or registering of other data, e.g. of signs of identity
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/109—Time management, e.g. calendars, reminders, meetings or time accounting
- G06Q10/1091—Recording time for administrative or management purposes
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Entrepreneurship & Innovation (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Marketing (AREA)
- Data Mining & Analysis (AREA)
- Economics (AREA)
- Educational Administration (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Telephonic Communication Services (AREA)
Abstract
The application provides a card punching method, electronic equipment and a computer readable storage medium. The card punching method comprises the following steps: acquiring a historical card punching record of a user in a first city; if a first user portrait consistent with the information in the historical card punching records exists in the electronic equipment, updating the first user portrait according to the historical card punching records; if the first user portrait consistent with the information in the historical card punching record does not exist in the electronic equipment, the first user portrait is built according to the historical card punching record; when the fact that the user is located in the first city again is detected, downloading a card punching fence and a card punching period corresponding to the first city according to the first user portrait; and outputting the card punching recommendation information according to the card punching fence and the card punching time period. By adopting the method for punching the card, under the condition that the historical punching records are deleted, if the user is located in the first city again, the first user portrait corresponding to the first city can be directly used for downloading the punching fence and the punching time period, so that the function of recommending punching the card is realized.
Description
Technical Field
The present application relates to the field of intelligent terminals, and in particular, to a card punching method, an electronic device, and a computer readable storage medium.
Background
At present, a common attendance checking method for enterprises generally designates staff to perform work-in and work-out card punching by using a card punching application, and counts the work-in and work-out time of the staff according to the card punching records of the staff. However, forgetting to punch and missing the punch frequently occur. The electronic equipment recommends the user to punch the card when the card punching time is reached under the condition that the user is positioned at the card punching position by counting the card punching records of individuals or groups, so that the user can be prevented from forgetting to punch the card or missing to punch the card.
When the user uses the recommended card punching function, the user may have a business trip to another city, and the card punching needs to be completed in the other city. Since the user's punch record typically has an upper storage time limit (e.g., 90 days), the punch record is deleted when the upper storage limit is exceeded. If the user goes on business trip to the city A for punching cards, the electronic equipment counts the punching records of the user in the city A. And then the user returns to the city B, and the electronic equipment counts the card punching records of the user in the city B. When the storage time of the card punching records of the city A exceeds the upper storage limit, if the user goes out to the city A again, the electronic equipment cannot acquire the corresponding card punching position and the card punching period according to the card punching records of the city A because the card punching records of the city A do not exist, so that the card punching of the user cannot be recommended in time.
Disclosure of Invention
The application provides a card punching method, electronic equipment and a computer readable storage medium, which solve the problem that card punching can not be recommended for a user under the condition that card punching records are deleted in the prior art.
In order to achieve the above purpose, the application adopts the following technical scheme:
in a first aspect, a method for punching a card is provided, including: acquiring a historical card punching record of a user in a first city; if the first user portrait consistent with the information in the historical card punching record exists in the electronic equipment, updating the first user portrait according to the historical card punching record; if the first user portrait consistent with the information in the historical card punching record does not exist in the electronic equipment, the first user portrait is established according to the historical card punching record, and the first user portrait does not cover the user portrait existing in the electronic equipment; when the fact that the user is located in the first city again is detected, downloading a card punching fence and a card punching period corresponding to the first city according to the first user portrait; outputting the card punching recommendation information according to the card punching fence and the card punching time period.
In the above embodiment, after the electronic device acquires the history card-punching record, the corresponding user portrait is generated, and the user portrait existing on the electronic device is not covered, so that the user portrait is not deleted, and in the case that the history card-punching record reaches the upper limit of storage and is deleted, the electronic device still stores the user portrait corresponding to each city. Under the condition that the historical card punching records are deleted, if the user is located in the first city again, the card punching fence and the card punching period can be directly downloaded by using the first user image corresponding to the first city, and the function of recommending card punching is achieved. Because the same historical card punching records are stored in a mode of updating the user portrait, the storage space occupied by the user portrait is small, and therefore, under the condition that the storage space is not increased and the upper limit of the storage time of the historical card punching records is not increased, the user returns to the first city again under the condition that the historical card punching records are deleted, and the recommended card punching function can be directly provided for the user.
In an embodiment, the first user portrait includes a city tag and an application tag, the city tag representing a city in which the punch card is located, the application tag representing an application of the punch card, the method further comprising:
and if the city label in the first user portrait is consistent with the city information in the historical card punching record, and the application label in the first user portrait is consistent with the application information in the historical card punching record, determining that the first user portrait consistent with the information in the historical card punching record exists in the electronic equipment.
In the above embodiment, since the city information corresponding to the city tag and the application information corresponding to the application tag in the history card-punching record are relatively fixed information, the city tag and the application tag are used as fixed parameters, and other information in the user portrait is updated, so that the storage space occupied by the user portrait can be saved.
In an embodiment, the first user representation further includes a network tag representing an identification of a network associated with the electronic device at a date of the swipe, the updating the first user representation based on the historical swipe record comprising: and updating the network tag according to the historical card punching record. The network information corresponding to the network tag reflects the working place of the user, and the network tag is updated according to the historical card punching record, so that the accuracy of the generated user portrait can be improved.
In an embodiment, the network tag comprises an identification of a first network to which the electronic device is connected and/or an identification of a second network scanned by the electronic device. The network tag is determined by combining a network connected with the electronic device and a network scanned by the electronic device, and the network tag can be obtained whether the electronic device is networked or not.
In one embodiment, the updating the first user representation according to the historical punch record further comprises: updating the connection information of the first network according to the historical punching record, and/or updating the scanning information of the second network according to the historical punching record, wherein the connection information comprises connection times and connection duration, and the scanning information comprises the scanning times. Because the connection information of the connection network and the scanning information of the scanning network reflect the position of the user and the time at the position, the accuracy of the obtained user portrait can be improved by updating the connection information of the first network and the scanning information of the second network in the user portrait.
In an embodiment, the first network is a network with the longest connection duration in a preset time period, the second network is a network with the largest scanning times in the preset time period, and the preset time period is a card punching date with the duration within a preset time period range from the current time. The first network with the longest connection time and the second network with the largest scanning times are selected through screening, so that the working address of the user can be reflected more accurately.
In an embodiment, the first network is a WIFI network, and/or the second network is a WIFI network. The SSID of the WIFI network can identify the specific address where the user works, and the card punching fence and card punching time of the same conversation group can be obtained more accurately according to the WIFI network.
In an embodiment, the downloading, according to the first user portrait, the card-punching fence and the card-punching period corresponding to the first city includes: downloading the corresponding card-punching fence and the card-punching period of the first city according to the latest generated first user portrait of the first city, thereby improving the accuracy of the obtained card-punching fence and the card-punching period.
In a second aspect, a card punching device is provided, and the card punching device is applied to an electronic device, and includes:
the acquisition module is used for acquiring a historical card punching record of the user in the first city;
the updating module is used for updating the first user portrait according to the historical card punching record if the first user portrait consistent with the information in the historical card punching record exists in the electronic equipment;
the reconstruction module is used for establishing a first user portrait according to the historical card punching record if the first user portrait consistent with the information in the historical card punching record does not exist in the electronic equipment, and the first user portrait does not cover the user portrait existing in the electronic equipment;
The downloading module is used for downloading a card punching fence and a card punching period corresponding to the first city according to the first user portrait when the user is detected to be located in the first city again;
and the output module is used for outputting the card punching recommendation information according to the card punching fence and the card punching time period.
In an embodiment, the first user portrait includes a city tag and an application tag, the city tag represents a city in which the card is punched, the application tag represents an application of the card punching, and the update module is further configured to:
and if the city label in the first user portrait is consistent with the city information in the historical card punching record, and the application label in the first user portrait is consistent with the application information in the historical card punching record, determining that the first user portrait consistent with the information in the historical card punching record exists in the electronic equipment.
In an embodiment, the first user portrait further includes a network tag, the network tag representing an identification of a network associated with the electronic device on a date of the card punching, and the update module is specifically configured to:
and updating the network tag according to the historical card punching record.
In an embodiment, the network tag comprises an identification of a first network to which the electronic device is connected and/or an identification of a second network scanned by the electronic device.
In an embodiment, the update module is further configured to:
updating the connection information of the first network according to the historical punching record, and/or updating the scanning information of the second network according to the historical punching record, wherein the connection information comprises connection times and connection duration, and the scanning information comprises the scanning times.
In an embodiment, the first network is a network with the longest connection duration in a preset time period, the second network is a network with the largest scanning times in the preset time period, and the preset time period is a card punching date with the duration within a preset time period range from the current time.
In an embodiment, the first network is a WI F I network and/or the second network is a WI F I network.
In an embodiment, the downloading module is specifically configured to:
and downloading the corresponding card-punching fence and the card-punching period of the first city according to the first user portrait of the first city which is generated last time.
In a third aspect, there is provided an electronic device comprising a processor for executing a computer program stored in a memory to implement the method of punching cards as described in the first aspect above.
In a fourth aspect, there is provided a computer readable storage medium storing a computer program which, when executed by a processor, implements a method of punching cards as described in the first aspect above.
In a fifth aspect, there is provided a chip comprising a processor coupled to a memory, the processor executing a computer program or instructions stored in the memory to implement the method of punching cards as described in the first aspect above.
In a sixth aspect, there is provided a computer program product for, when run on an electronic device, causing the electronic device to perform the method of punching cards described in the first aspect above.
It will be appreciated that the advantages of the second to sixth aspects may be found in the relevant description of the first aspect, and are not described here again.
Drawings
Fig. 1 is an interface diagram of a card punching scene provided by an embodiment of the application;
FIG. 2 is an interface diagram of another card punching scenario provided in an embodiment of the present application;
fig. 3 is a schematic flow chart of a card punching method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
Fig. 5 is a software architecture diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
The electronic device mentioned in the embodiments of the present application may be a device that may be held/operated by one hand, such as a mobile phone, a tablet computer, a handheld computer, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR), a Virtual Reality (VR) device, a media player, and a wearable device, and the specific form/type of the electronic device is not particularly limited in the embodiments of the present application. The electronic device includes but is not limited to a mounted device Hong Mongolian System (Harmony OS) or other operating system devices.
The user uses the electronic equipment to punch cards in the working hours and the working hours, which is a common attendance checking method at present. Illustratively, the step of punching the card is: as shown in fig. 1 (a), in the time period of on-duty card punching, when the electronic device detects the operation of "checking on attendance" of the user to punch the card application, the electronic device opens the main interface of the checking on attendance card punching application, and then opens the card punching interface of the checking on attendance card punching application according to the card punching instruction of the user. The card punching interface as shown in (b) of fig. 1, the card punching interface displays the option that the current time is "8:00", the current position is "x×building", and the "work card punching" is displayed. When the option that the user clicks the "work card punching" is detected, the electronic equipment records the card punching time of the user and completes card punching.
In order to avoid situations where the user forgets to punch or misses to punch a card, the user may use a recommended card punching function on the electronic device. The recommended card punching function is that when a user is located in a card punching fence (for example, a distance x is 100 meters from a building) and the current time is located in a card punching period, the electronic equipment displays information of recommended card punching on a display interface of the electronic equipment, so that the user is reminded of timely card punching. For example, as shown in fig. 2 (a), in an application scenario, in a state in which the electronic device is in a screen-locked state, the electronic device displays information of recommending to punch a card on a screen-locked interface. In the case where it is detected that the user clicks on the information of recommended punching and unlocks the electronic device, the electronic device opens the punching interface as shown in (b) in fig. 2.
The implementation process of the recommended card punching function of the electronic equipment comprises the following steps: the electronic device uploads the historical card punching record to the server. The historical card-punching record comprises a card-punching place and card-punching time, and also can comprise a network connected by a user on a card-punching date. And the server determines the card punching fence and the card punching time period of the user according to the historical card punching record, and sends the card punching fence and the card punching time period to the electronic equipment. Or, the server receives historical card punching records sent by a plurality of electronic devices, and counts card punching fences and card punching time periods of the same user group (such as the user group of the same company). And the server determines the group in which the user is positioned according to the historical card punching record uploaded by each electronic device, and sends the corresponding card punching fence and the card punching period to the electronic device. When the electronic equipment is detected to be positioned in the card punching fence and is currently positioned in the card punching time period, the electronic equipment displays card punching recommendation information on the display interface.
Therefore, the electronic equipment or the server is required to store the historical card punching records to acquire the corresponding card punching fence and the corresponding card punching time period, so that the function of recommending card punching is realized. The storage time of the historical card punching record generally has an upper storage limit due to the influence of factors such as the storage space of the electronic device and the privacy of a user. When the upper storage limit is exceeded, the history of the punch-card record is deleted. If the user goes to the city A for business trip, the user punches a card in the city A, and the electronic equipment stores the historical card punching record of the user in the city A. And then the user returns to the city B to work, and the electronic equipment stores the historical card punching record of the user in the city B. And the user goes to the city A again to go on business trip, if the time of the historical card punching record of the city A recorded last time exceeds the upper limit of storage, the historical card punching record of the city A does not exist on the electronic equipment or the server. If the function of recommending the card punching in the city A is to be realized, the electronic equipment at least needs to record the historical card punching record of the city A in one day, and then the card punching fence and the card punching time are obtained from the server according to the historical card punching record. Therefore, when the user arrives at the city A again, the electronic equipment cannot recommend the user to punch a card in time, so that the user experience is affected.
By increasing the storage time of the history punch record, the situation that the history punch record is deleted can be reduced, but a larger storage space is required, and a storage bottleneck still exists.
Through storing the city that the user checked-in was located and the associated information with the position of checking-in, for example, will be in the date of checking-in that the electronic equipment is connected long wireless fidelity (WIreless Fidelity, WIFI) or scanning the WIFI that the number of times is more and the city that the user checked-in is located are correlated with to store in electronic equipment, the server confirms the crowd that the user belonged to according to the WIFI that electronic equipment is connected or the WIFI of scanning, will check-in rail and time slot propelling movement to electronic equipment, electronic equipment realizes the function of recommending the card according to rail and time slot of checking-in, also can realize the function of recommending the card under the condition that history record of checking-in is deleted, but long-time storage WIFI information also can increase storage space.
Therefore, the application provides a card punching method, which comprises the steps that the electronic equipment generates a user portrait of the city A according to the historical card punching record of the city A and stores the user portrait in the electronic equipment. The electronic device generates a user portrait of the city B according to the history card punching record of the city B and stores the user portrait in the electronic device. The user portrait does not have the upper limit of storage time, and after the history card punching record is acquired, if the user portrait consistent with the information in the history card punching record exists in the electronic equipment, the corresponding user portrait is updated. Therefore, the user portrait occupies less memory. When the electronic equipment detects that the user is in the city A or the city B, the card-punching fence and the card-punching time period can be downloaded according to the corresponding user portrait, and the user card-punching is recommended according to the card-punching fence and the card-punching time period. Therefore, under the condition that the storage space is not increased and the upper limit of the storage time of the historical card punching record is not increased, when the user is positioned in the city where the card punching is once again, the electronic equipment can still realize the function of recommending card punching under the condition that the historical card punching record is deleted.
The method of punching card provided by the application is exemplified below.
First, an exemplary description will be given of a user portrait.
The user portrait is generated according to the historical card punching record and stored on the electronic equipment. Multiple user representations of the same user may be stored on an electronic device. The history card-punching record can be stored on the electronic equipment, or the electronic equipment can upload the collected history card-punching record to a server and download the record from the server when the user portrait needs to be generated.
The history punch record is a punch record of the user in the past period, such as a punch record of the previous day, or a punch record of the previous three days, etc. The card-punching record comprises information such as the city in which the card is located, the identification of the application used by the card-punching, the card-punching date, the card-punching time in working, the network connected on the card-punching date, the time for connecting the network, the time for disconnecting the network, the network scanned on the card-punching date, the time for scanning the network and the like. The network may be a WIFI network, a 5G network, or bluetooth.
The user portraits include city labels, application labels, and network labels. The city tag indicates the city in which the user is checking, for example, the city tag may be Shenzhen city, beijing city, sian city, etc. The application tag represents an identification of the application that is punched, the identification of the application may be a name of the application, for example the application tag may be Etc. The network tag represents an identification of a network associated with the electronic device at the date of the punch, the associated network including a connectionA network (connection network) and a scanned network (scanning network). For example, the connection network is a WIFI network connected to the electronic device, the scanning network is a WIFI network scanned by the electronic device, the electronic device scans the WIFI network according to a set interval when the electronic device is not connected to the WIFI network, and the WIFI networks scanned by the electronic device are all scanning networks. The identity of the associated network may be a service set identity (Service Set Identifier, SSID) of the WIFI network or a name of the WIFI network. The SSID or the name of the WIFI network corresponds to the location of the user, and by recording the SSID or the name of the WIFI network, the location of the user on the date of punching the card can be determined.
The electronic equipment takes the city where the card is located in the historical card punching record as an urban label and takes the identification of the application used by the card punching as an application label. The electronic equipment determines the identification of each network connected on the date of the punching, the corresponding connection times and connection time according to the network connected on the date of the punching, the time of connecting the network and the time of disconnecting the network in the historical punching record. And taking the identification of the network with the connection time exceeding the preset time or the connection times exceeding the preset times as a network label. The electronic equipment determines the identification of each network scanned on the date of the punching and the corresponding scanning times according to the network scanned on the date of the punching and the time of scanning the network in the historical punching record, and the identification of the network with the scanning times larger than the preset times is also used as a network label. A user profile may include multiple network tags that connect to a network or may include multiple network tags that scan a network.
The user profile also includes a connection duration and a connection number of the connection network, and includes a connection number of the scan network.
For example, the user image exists in a file named as "Attendance TopWifiHistory", the city label of the user image obtained according to the history card punching record is Shenzhen city, the application label is "com.huawei.well", one of the user images is connected with a network label of WIFI and is "Hihonor-Employee-Mobile", the connection time is 2 times, the connection time is 100 minutes (or 6000 seconds, or 6000000 milliseconds), the other is connected with a network label of WIFI and is "bianlific", the connection time is 1 time, and the connection time is 1 minute. One of the network labels for scanning WIFI is 'P2 PTest', the scanning times are 8, the other network label for scanning WIFI is 'HONOR 80 Pro', and the scanning times are 2.
The city code is used for representing a field of city codes, the city is used for representing a field of city labels, the packageName is used for representing a field of application labels, the refreshTime is used for representing the update time of a user portrait, the connectiwifi is used for representing a connection network, the ssid in the connectiwifi is used for representing a field of network labels of the connection network, the scanWifi is used for representing a scanning network, the ssid in the scanWifi is used for representing a field of network labels of the scanning network, the count is used for representing times, and the duration is used for representing connection duration. The user image correspondingly stored in the electronic device is in the form of:
"cityCode":"0755",
"city": "Shenzhen city",
"packageName":"com.huawei.welink",
"refreshTime":1678919034466,
"connectWifi":[{
"ssid":"Hihonor-Employee-Mobile",
"count":2,
"duration" for 100 minutes
},{
"ssid":"bianlifeng",
"count":1,
"duration" 1 minute
}],
"scanWifi":[{
"ssid":"P2PTest",
"count":8
},{
"ssid":"HONOR 80Pro",
"count":2
}]。
After the user portrait is established, if the city where the card is located in the re-acquired historical card punching record is Shenzhen city, the mark of the application used for card punching is com.
For example, if the identifier of the connection WIFI in the history card punching record is Hihonor-Employee-Mobile or bianlifeng, the connection times and connection durations of the corresponding connection WIFI are updated. For example, the connection times and the connection time length are increased according to the historical card punching records, and the total connection times and the total connection time length corresponding to the WIFI at the current moment are obtained. If the identification of the scanning WIFI in the history card punching record is P2PTest or HONOR 80Pro, the scanning times of the corresponding scanning WIFI are updated.
If the network label in the user image does not have the identifier of the connection WIFI in the history card punching record, the network label of the connection network is newly added in the user image or the network label of the connection network in the user image is replaced. If the identification of the scanning WIFI in the history card punching record does not exist in the network label in the user portrait, the network label of the scanning network is newly added in the user portrait or the network label of the scanning network in the user portrait is replaced.
The corresponding update time is updated while the user portrait is updated, and the update time may be the time of updating the user portrait or the generation time of the history card punching record.
In other embodiments, the network tag connected to the network in the user portrait may only reserve WIFI with the longest connection duration or WIFI with the largest number of connections in the last day or three days. The network tag of the scanning network in the user portrait can only reserve the WIFI with the largest scanning frequency in the last day or three days.
In other embodiments, if the identifier of the connection WIFI in the history card record does not exist in the network tag in the user portrait, or the identifier of the scanning WIFI in the history card record does not exist in the network tag in the user portrait, the user portrait may also be newly created.
If the city where the card is located in the re-acquired historical card punching record is not Shenzhen city, or the identification of the application used for card punching is not com.
The city label of the user portrait is Shenzhen city, the application label is "com.dinding", one of the network labels connected with WIFI is "Hihonor-Employee-Mobile", the connection time is 2 times, the connection time is 100 minutes, the other network label connected with WIFI is "bianlific", the connection time is 1 time, and the connection time is 1 minute. One of the network labels for scanning WIFI is 'P2 PTest', the scanning times are 8, the other network label for scanning WIFI is 'HONOR 80 Pro', and the scanning times are 2.
The user image correspondingly stored in the electronic device is in the form of:
"cityCode":"0755",
"city": "Shenzhen city",
"packageName":"com.dingding",
"refreshTime":1678919034466,
"connectWifi":[{
"ssid":"Hihonor-Employee-Mobile",
"count":2,
"duration" for 100 minutes
},{
"ssid":"bianlifeng",
"count":1,
"duration" 1 minute
}],
"scanWifi":[{
"ssid":"P2PTest",
"count":8
},{
"ssid":"HONOR 80Pro",
"count":2
}]。
For example, the city label of the user portrait is Beijing city, the application label is "com.huawei.well", the network label connected with WIFI is "beijin-Employee", the connection time is 3 times, the connection time is 200 minutes, the network label scanned with WIFI is "HONOR 80Pro", and the scanning time is 2 times.
The user image correspondingly stored in the electronic device is in the form of:
"cityCode":"010",
"city" Beijing city ",
"packageName":"com.huawei.welink",
"refreshTime":1778919034466,
"connectWifi":[{
"ssid":beijing-Employee",
"count":3,
"duration" for 200 minutes
},
"scanWifi":[
{
"ssid":"HONOR 80Pro",
"count":2
}]。
The storage time of the user portrait in the electronic equipment is longer than the preset time, and the electronic equipment always stores the user portrait when the instruction of deleting the user portrait by the user is not detected.
Referring to fig. 3, a card punching method provided in an embodiment of the application includes:
s301: and acquiring a historical card punching record of the user in the first city.
Specifically, the historical punch record of the first city is a punch record of the user in the first city in the past period, such as a punch record of the previous day, or a punch record of the previous three days, etc. The history card record includes information such as an identification of an application used by the user when the user is checking a card in the first city, a card-checking date, a card-checking time in the shift, a network connected on the card-checking date, a time of connecting the network, a time of disconnecting the network, a network scanned on the card-checking date, a time of scanning the network, and the like.
S302: and if the first user portrait consistent with the information in the historical card punching record exists in the electronic equipment, updating the first user portrait according to the historical card punching record.
The electronic equipment stores a plurality of user portraits, and each user portrait comprises a city label, an application label and a network label. The information of the historical card punching record determined by the electronic equipment according to the historical card punching record comprises: the city where the card is located, the application used by the card and the network associated with the card-punching date are the city information, the application used by the card-punching is the application information, and the network associated with the card-punching is the network information. The electronic equipment compares the city information, the application information and the network information of the historical card punching record with the city label, the application label and the network label of each user portrait respectively to determine whether a user portrait consistent with the information in the historical card punching record exists or not, wherein the user portrait is the first user portrait.
In one embodiment, if the city tag in the first user representation is consistent with the city information in the history punching record and the application tag in the first user representation is consistent with the application information in the history punching record, it is determined that the first user representation consistent with the information in the history punching record exists in the electronic device. For example, if the city information in the history card record is "Shenzhen city", the application information is "WeLink", the city tag of one user portrait is "Shenzhen city", and the application tag is "WeLink", then there is a user portrait in the electronic device that matches the information in the history card record, and the user portrait is the first user portrait.
If the first user portrait is consistent with the information in the historical card punching record in the electronic equipment, updating the first user portrait according to the network information in the historical card punching record. Specifically, if the first user portrait does not have the network tag consistent with the network information in the historical card punching record, the network tag in the historical card punching record and the connection information corresponding to the network tag are added in the first user portrait. If the first user portrait has the network label consistent with the network information in the historical card punching record, updating the connection information corresponding to the network label according to the historical card punching record.
In an embodiment, the network tag comprises one or both of an identification of a first network (connection network) to which the electronic device is connected, an identification of a second network (scanning network) scanned by the electronic device. For example, the network identity may be the SSID of the WIFI network, which may represent the user's work place, from which the user may be determined to be located in the x-th floor x room of the x-building, for example. If the identifier of the first network exists in the historical card punching record and the connection time of the first network is longer than the preset time, the network tag in the user portrait determined according to the historical card punching record only comprises the identifier of the first network. If the first network exists in the historical card punching record and the connection time of the first network is smaller than the preset time, the identifier of the second network also exists in the historical card punching record, and the network tag in the user portrait determined according to the historical card punching record comprises the identifier of the first network and the identifier of the second network. If the first network does not exist in the historical card punching record and the second network exists in the historical card punching record, the network tag in the user portrait determined according to the historical card punching record comprises the identification of the second network.
Correspondingly, updating the connection information corresponding to the network tag includes updating the connection information of the first network and/or updating the scanning information of the second network identifier according to the historical card punching record. The connection information comprises connection times and connection time, and the scanning information is the scanning times. For example, if the identifier of the first network exists in the user portrait, the connection times and the connection time length of the first network are updated according to the historical punching record, the updated connection times are the sum of the current connection times and the connection times in the historical punching record, and the updated connection time length is the sum of the current connection time length and the connection time length in the historical punching record. If the user portrait has the identification of the second network, updating the scanning times of the second network according to the historical card punching record, wherein the updated scanning times are the sum of the current scanning times and the scanning times in the historical card punching record. By updating the connection information of the first network and updating the scanning information of the second network identifier, the network which is frequently connected or the network which is frequently scanned by the user in a period of time can be determined, and further, the working place of the user can be more accurately determined.
In one embodiment, the historical punch record is a punch record over a preset period of time, the preset period of time being a punch date having a duration from the current time within a preset duration range (e.g., one, three, or seven days). After the electronic equipment acquires the historical punching records, if city information and application information corresponding to each punching record in the historical punching records are the same, determining that a first user portrait consistent with the information in the historical punching records exists in the electronic equipment. And then determining a connection network with the longest connection time in a preset time period, taking the network as a first network, determining a network with the largest scanning times in the preset time period, and taking the network as a second network. Or the electronic equipment arranges the connection time lengths of all the connection networks in order from long to short to obtain first N (N is a positive integer) connection networks, the first N connection networks are used as first networks, the electronic equipment arranges the scanning times of all the scanning networks in order from more to less to obtain first N scanning networks, and the first N scanning networks are used as second networks.
After the electronic equipment obtains the first network and the second network, the identification of the first network and the identification of the second network are used as network labels, and the user portrait is built. And then, the electronic equipment acquires the historical card punching record again, and determines a new first network and a new second network according to the connection time length and the connection times of the connection network in the historical card punching record and the scanning times of the scanning network, and if the new first network and the new second network exist in the corresponding user portrait in the electronic equipment, the connection time length and the connection times of the first network are updated, and the scanning times of the second network are updated. If the corresponding user portrait in the electronic device does not have the new first network and the new second network, the network tag in the corresponding user portrait is updated.
In one embodiment, if the city tag in the first user representation is consistent with the city information in the history punching record, the application tag in the first user representation is consistent with the application information in the history punching record, and the network tag in the first user representation is consistent with the network information in the history punching record, it is determined that the first user representation consistent with the information in the history punching record exists in the electronic device. The corresponding updated first user representation includes updated connection information or scan information corresponding to the network tag.
In an embodiment, the electronic device may determine city information, application information and network information according to the historical card punching information when detecting that the electronic device is in a charging screen-off state, the electric quantity of the electronic device is greater than a preset electric quantity, the electronic device is in an idle state or the current period is a preset period, so as to determine whether a first user portrait consistent with information in the historical card punching record exists in the electronic device.
In an embodiment, when the electronic device detects that the electronic device is in a charging screen-off state for the first time, the electronic device determines city information, application information and network information according to the historical card punching information. The electronic equipment can count the card punching information every day to obtain a historical card punching record, and update or newly establish a user portrait every day according to the historical card punching record. The electronic equipment can also count the card punching information every day to obtain a historical card punching record, and when the historical card punching record of the preset period is obtained, the user portrait is updated or newly built according to the historical card punching record.
S303: if the first user portrait consistent with the information in the historical card punching record does not exist in the electronic equipment, the first user portrait is established according to the historical card punching record, and the first user portrait does not cover the user portrait existing in the electronic equipment.
In one embodiment, if there is no user representation in the electronic device that is the same as the city information in the history punch record or there is no user representation in the electronic device that is the same as the application information in the history punch record, it is determined that there is no first user representation in the electronic device that is consistent with the information in the history punch record.
In another embodiment, if no user representation exists in the electronic device that is consistent with all of the city information, the application information, and the network information in the historical credit record, it is determined that no first user representation exists in the electronic device that is consistent with the information in the historical credit record.
When it is determined that the first user portrait consistent with the information in the historical card punching record does not exist in the electronic equipment, the electronic equipment establishes the first user portrait according to the historical card punching record, and the first user portrait is a newly added user portrait.
In one embodiment, the electronic device obtains a historical punch record of a user for a plurality of days (e.g., three days), and updates the user representation according to the historical punch record of each day if at least two of the punch records are different. For example, a first day of the historical punch records is first determined, and a determination is made as to whether a first user representation exists in the electronic device that is consistent with the information in the historical punch records. If the user portrait which is consistent with the information of the first day of card punching record exists in the electronic equipment, updating the user portrait according to the first day of card punching record, and if the user portrait which is consistent with the information of the first day of card punching record does not exist in the electronic equipment, establishing the user portrait according to the first day of card punching record. And then updating or newly creating the user portrait according to the daily card punching records in sequence.
In an embodiment, after the electronic device obtains the historical punching record, if there is a first user portrait in the electronic device, which is consistent with information in the historical punching record, and a time interval between an update time of the first user portrait and a current time is longer than a preset duration, the electronic device establishes a new second user portrait according to the historical punching record, so that accuracy of the obtained user portrait is improved. For example, a user has a punch record in a city A, a first user portrait of the city A is generated according to the punch record in the city A, then the user goes to a city B for business trip, a punch record of the city B is generated according to the punch record in the city B, then the user returns to the city A again for punch, the update time of the current time from the first user portrait is longer than a preset time length, and in order to ensure the accuracy of the obtained user portrait, the electronic equipment generates a second user portrait of the city A according to the latest acquired punch record of the city A.
S304: and when the fact that the user is located in the first city again is detected, downloading a card punching fence and a card punching period corresponding to the first city according to the first user portrait.
Specifically, at least one user representation is stored in the electronic device, and when the user is detected to be located in the first city, the electronic device determines that the city tag is the first user representation of the first city. The first user representation includes a city tag, an application tag, and a network tag. The electronic device downloads from the server the pickup fence and the pickup period consistent with the city tag, the application tag, and the network tag of the first user portrait. The card-punching fence refers to a preset position range (for example, within 100 meters from a work place), and the card-punching period refers to a period of time when a user may punch cards. The time period for off-duty card punching is 8:00-9:30, and the time period for off-duty card punching is 17:00-19:00.
In one embodiment, multiple sets of the punch-out pens and punch-out time periods are stored in the server, each set of the punch-out pens and punch-out time periods being generated from historical punch-out records. The city information in the history card-punching record indicates the city in which the user is punching, the application information indicates the application used by the punching, and the network information indicates the network connected on the punching date. The network information is consistent with location and thus in the historical credit records of the same user group (e.g., users at the same job site). Therefore, city information, application information and network information in the history card punching record of the same user group are consistent. The server determines the same user group according to the historical card punching records, and then determines the card punching fence and the card punching time period of the user group according to the card punching time and the card punching position of the same user group. The server uses the user groups with the same city information, application information and network information in the historical card punching records as the same user group, so as to count the card punching fence and the card punching period corresponding to each user group.
When the electronic equipment determines that the first user portrait is currently used for acquiring the card-punching fence and the card-punching period, uploading the city label, the application label and the network label of the first user portrait to a server, determining a user group to which the user belongs by the server according to the city label, the application label and the network label, and sending the card-punching fence and the card-punching period of the user group to the electronic equipment. The network tag uploaded to the server by the electronic device may be a network tag of a network connected with the longest connection duration, or a network tag of a network connected with the longest connection times, or a network tag of a network scanned with the largest scanning times.
In another embodiment, the electronic device may determine the user's swiping habit according to the historical swiping record uploaded by the current user, and further determine the swiping fence and the swiping period. If the electronic equipment uploads historical card punching records of users in a plurality of cities, respectively generating card punching fences and card punching time periods of the cities. For example, according to the historical punching record of the user in Shenzhen, the punching fence and the punching period corresponding to Shenzhen are determined, and according to the historical punching record of the user in Beijing, the punching fence and the punching period corresponding to Beijing are determined. After determining the currently used first user portrait, the electronic device uploads the city tag, the application tag and the network tag of the first user portrait to a server, and the server sends the card punching fence and the card punching period associated with the city tag, the application tag and the network tag to the electronic device.
In an embodiment, if there are a plurality of first user images corresponding to the first city in the electronic device, determining a first user image generated last time, and downloading the card-punching fence and the card-punching period corresponding to the first city according to the first user image generated last time, thereby improving the accuracy of the downloaded card-punching fence and the card-punching period.
For example, the city labels are multiple user figures in Shenzhen city, and each user figure corresponds to different network labels, which means that the network is replaced at the work place where the user is located, or the user replaces the work place, and then the card punching fence and the card punching time period are downloaded according to the first user figure generated last time, so that the accuracy of the obtained card punching fence and the card punching time period can be improved.
For another example, the city labels are multiple user figures in Shenzhen city, and each user figure corresponds to different application labels, which indicates that the user changes the card punching application or the user changes the work place, and then the card punching fence and the card punching period are downloaded according to the first user figure generated last time.
S305: outputting the card punching recommendation information according to the card punching fence and the card punching time period.
Specifically, when it is detected that the electronic device is located in the punching pen and the current period is located in the punching period, the electronic device displays information that the punching is recommended as shown in (a) in fig. 2. In other embodiments, when the electronic device is in the non-screen-locking state and it is determined that the card punching recommendation information needs to be output, the electronic device may display a floating window or a card on the display interface, and display the card punching recommendation information on the floating window or the card.
In the above embodiment, after the electronic device obtains the history card-punching record, the information of the history card-punching record is compared with the user portrait existing in the electronic device, if the user portrait consistent with the information in the history card-punching record exists in the electronic device, the corresponding user portrait is updated, and if the user portrait consistent with the information in the history card-punching record does not exist in the electronic device, the user portrait is newly created. When the user punches cards in different cities, the electronic equipment can establish user portraits corresponding to the cities according to the historical card punching records recorded in each city. After the user punches a card in the first city for the first time, the electronic equipment generates a corresponding user portrait according to the card punching record in the first city and stores the user portrait. When the user goes out from the first city for the second time, even if the time from the last time to the first city exceeds the upper storage limit of the historical card punching record, the electronic equipment can download the card punching fence and the card punching time period of the first city according to the user portrait corresponding to the first city, so that the card punching of the user is recommended. Meanwhile, the user portrait is stored in an updated mode, and the storage space occupied by the user portrait is smaller than that occupied by the history card punching record. Therefore, under the condition that the storage space occupied by the user portrait is not increased and the upper limit of the storage time of the historical card punching record is not increased, the function of directly recommending the user to punch cards when the user arrives at the first city for the second time can be realized, and further the user experience is improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also employ different interfacing manners in the above embodiments, or a combination of multiple interfacing manners.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, the electronic device 100 may range using the distance sensor 180F to achieve quick focus.
The touch sensor 180K, also referred to as a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the invention, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated.
Fig. 5 is a software configuration block diagram of the electronic device 100 according to the embodiment of the present invention.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 5, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 5, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other manners. For example, the apparatus/electronic device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.
Claims (10)
1. A method for punching a card, applied to an electronic device, comprising:
Acquiring a historical card punching record of a user in a first city;
if the first user portrait consistent with the information in the historical card punching record exists in the electronic equipment, updating the first user portrait according to the historical card punching record;
if the first user portrait consistent with the information in the historical card punching record does not exist in the electronic equipment, the first user portrait is established according to the historical card punching record, and the first user portrait does not cover the user portrait existing in the electronic equipment;
when the fact that the user is located in the first city again is detected, downloading a card punching fence and a card punching period corresponding to the first city according to the first user portrait;
outputting the card punching recommendation information according to the card punching fence and the card punching time period.
2. The method of claim 1, wherein the first user representation comprises a city tag representing a city in which the punch card is located and an application tag representing an application of the punch card, the method further comprising:
and if the city label in the first user portrait is consistent with the city information in the historical card punching record, and the application label in the first user portrait is consistent with the application information in the historical card punching record, determining that the first user portrait consistent with the information in the historical card punching record exists in the electronic equipment.
3. The method of claim 2, wherein the first user representation further comprises a network tag representing an identification of a network with which the electronic device is associated at a date of the punch, the updating the first user representation based on the historical punch record comprising:
and updating the network tag according to the historical card punching record.
4. A method according to claim 3, characterized in that the network tag comprises an identification of a first network to which the electronic device is connected and/or an identification of a second network scanned by the electronic device.
5. The method of claim 4, wherein the updating the first user representation based on the historical punch record further comprises:
updating the connection information of the first network according to the historical punching record, and/or updating the scanning information of the second network according to the historical punching record, wherein the connection information comprises connection times and connection duration, and the scanning information comprises the scanning times.
6. The method of claim 4, wherein the first network is a network having a longest connection duration within a predetermined period, the second network is a network having a largest number of scans within the predetermined period, and the predetermined period is a date of punching a card having a duration within a predetermined duration from a current time.
7. The method of claim 4, wherein the first network is a WIFI network and/or the second network is a WIFI network.
8. The method of claim 1, wherein the downloading the corresponding tie-down and time period from the first user representation comprises:
and downloading the corresponding card-punching fence and the card-punching period of the first city according to the first user portrait of the first city which is generated last time.
9. An electronic device comprising a processor for executing a computer program stored in a memory to implement a method of punching cards according to any one of claims 1 to 8.
10. A computer readable storage medium storing a computer program, which when executed by a processor implements a method of punching cards according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310841421.6A CN116935504B (en) | 2023-07-10 | 2023-07-10 | Card punching method, electronic device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310841421.6A CN116935504B (en) | 2023-07-10 | 2023-07-10 | Card punching method, electronic device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116935504A true CN116935504A (en) | 2023-10-24 |
CN116935504B CN116935504B (en) | 2024-08-13 |
Family
ID=88387233
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310841421.6A Active CN116935504B (en) | 2023-07-10 | 2023-07-10 | Card punching method, electronic device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116935504B (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104376340A (en) * | 2014-08-29 | 2015-02-25 | 腾讯科技(深圳)有限公司 | Clock punching method and device |
CN106210308A (en) * | 2016-07-08 | 2016-12-07 | 深圳市金立通信设备有限公司 | A kind of method of intelligent reminding and terminal |
CN107146294A (en) * | 2017-04-13 | 2017-09-08 | 腾讯科技(深圳)有限公司 | Register method, apparatus and system |
CN107172655A (en) * | 2017-06-20 | 2017-09-15 | 上海斐讯数据通信技术有限公司 | A kind of automatic Work attendance method and system based on radio reception device |
CN108038671A (en) * | 2017-12-26 | 2018-05-15 | 北京邦邦共赢网络科技有限公司 | A kind of method and apparatus intelligently checked card |
CN108810821A (en) * | 2018-05-31 | 2018-11-13 | 苏州达家迎信息技术有限公司 | Method, apparatus, terminal, server and the storage medium of attendance tracking |
CN109583824A (en) * | 2017-09-29 | 2019-04-05 | 腾讯科技(深圳)有限公司 | A kind of Work attendance method, system, equipment and computer readable storage medium |
CN111798584A (en) * | 2020-08-09 | 2020-10-20 | 泉州征之魂智能科技服务有限公司 | Remote automatic attendance checking method based on mobile terminal |
US20220215347A1 (en) * | 2021-01-04 | 2022-07-07 | Adp, Llc | Multi-task deep learning of time record events |
CN115273265A (en) * | 2022-09-22 | 2022-11-01 | 山东云小兵信息技术有限公司 | Intelligent card punching reminding method, system, device and readable storage medium |
CN115659069A (en) * | 2022-12-28 | 2023-01-31 | 荣耀终端有限公司 | Card punching recommendation method and device and terminal equipment |
CN116051065A (en) * | 2023-02-09 | 2023-05-02 | 平安付科技服务有限公司 | Attendance data generation method and device, computer equipment and readable storage medium |
CN116320141A (en) * | 2023-05-24 | 2023-06-23 | 荣耀终端有限公司 | Method for recommending card punching, electronic equipment and computer readable storage medium |
-
2023
- 2023-07-10 CN CN202310841421.6A patent/CN116935504B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104376340A (en) * | 2014-08-29 | 2015-02-25 | 腾讯科技(深圳)有限公司 | Clock punching method and device |
CN106210308A (en) * | 2016-07-08 | 2016-12-07 | 深圳市金立通信设备有限公司 | A kind of method of intelligent reminding and terminal |
CN107146294A (en) * | 2017-04-13 | 2017-09-08 | 腾讯科技(深圳)有限公司 | Register method, apparatus and system |
CN107172655A (en) * | 2017-06-20 | 2017-09-15 | 上海斐讯数据通信技术有限公司 | A kind of automatic Work attendance method and system based on radio reception device |
CN109583824A (en) * | 2017-09-29 | 2019-04-05 | 腾讯科技(深圳)有限公司 | A kind of Work attendance method, system, equipment and computer readable storage medium |
CN108038671A (en) * | 2017-12-26 | 2018-05-15 | 北京邦邦共赢网络科技有限公司 | A kind of method and apparatus intelligently checked card |
CN108810821A (en) * | 2018-05-31 | 2018-11-13 | 苏州达家迎信息技术有限公司 | Method, apparatus, terminal, server and the storage medium of attendance tracking |
CN111798584A (en) * | 2020-08-09 | 2020-10-20 | 泉州征之魂智能科技服务有限公司 | Remote automatic attendance checking method based on mobile terminal |
US20220215347A1 (en) * | 2021-01-04 | 2022-07-07 | Adp, Llc | Multi-task deep learning of time record events |
CN115273265A (en) * | 2022-09-22 | 2022-11-01 | 山东云小兵信息技术有限公司 | Intelligent card punching reminding method, system, device and readable storage medium |
CN115659069A (en) * | 2022-12-28 | 2023-01-31 | 荣耀终端有限公司 | Card punching recommendation method and device and terminal equipment |
CN116051065A (en) * | 2023-02-09 | 2023-05-02 | 平安付科技服务有限公司 | Attendance data generation method and device, computer equipment and readable storage medium |
CN116320141A (en) * | 2023-05-24 | 2023-06-23 | 荣耀终端有限公司 | Method for recommending card punching, electronic equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN116935504B (en) | 2024-08-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111192005B (en) | Government affair service processing method and device, computer equipment and readable storage medium | |
CN113766064B (en) | Schedule processing method and electronic equipment | |
CN116320141B (en) | Method for recommending card punching, electronic equipment and computer readable storage medium | |
CN114077529B (en) | Log uploading method and device, electronic equipment and computer readable storage medium | |
WO2021185352A1 (en) | Version upgrade method and related apparatus | |
CN116433696B (en) | Matting method, electronic equipment and computer readable storage medium | |
CN116826892A (en) | Charging method, charging device, electronic apparatus, and readable storage medium | |
CN116935504B (en) | Card punching method, electronic device and computer readable storage medium | |
CN114205512A (en) | Shooting method and device | |
CN116664734B (en) | Method for displaying ring chart, electronic device and readable storage medium | |
CN116225274A (en) | Identification method and device for touch operation, electronic equipment and storage medium | |
CN115097993B (en) | Express prompt method and electronic equipment | |
CN115016921B (en) | Resource scheduling method, device and storage medium | |
CN115145457B (en) | Method and device for scrolling screen capturing | |
CN112711636B (en) | Data synchronization method, device, equipment and medium | |
CN116700554B (en) | Information display method, electronic device and readable storage medium | |
CN113821153B (en) | Gesture navigation method, electronic device and readable storage medium | |
CN117135253B (en) | Contact searching method, terminal equipment and storage medium | |
CN115086413B (en) | Information prompting method and electronic equipment | |
CN116052567B (en) | Method for adjusting ambient light gain, electronic device and readable storage medium | |
CN115291995B (en) | Message display method, related electronic equipment and readable storage medium | |
CN114816311B (en) | Screen movement method and device | |
WO2024046010A1 (en) | Interface display method, and device and system | |
EP4455986A1 (en) | Data processing method and apparatus, and device and storage medium | |
CN117150067A (en) | Album processing method and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |