Obtain the method and apparatus of the information content in electronic ticket
Technical field
The present invention relates to Intelligent Terminal technical field, more particularly to a kind of method for obtaining the information content in electronic ticket
And equipment.
Background technology
With the rapid development of science and technology, mobile terminal plays very important effect, people in the live and work of people
Increasingly be unable to do without mobile terminal, especially mobile terminal with the situation that internet is combined, people all the time
Enjoy easily Internet service;But when mobile terminal accessing internet is used in user, it is bad in some networks
Place, user can not timely get internet information;For example, the electronic edition film ticket that user buys on the internet,
When being got tickets to cinema, because the network environment where cinema is bad, user can not be obtained using mobile terminal from internet
The information of getting tickets of film ticket is got, it is necessary to which getting tickets for film ticket could be got from internet to the preferable place of network environment
Information, then got tickets again to cinema, it is seen then that so relatively lose time, and can be made troubles to user.
The content of the invention
In view of this, the embodiment of the present invention it is expected to provide a kind of method and apparatus for obtaining the information content in electronic ticket,
It can effectively save the time, improve convenience and degree of intelligence.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
The present invention provides a kind of method for obtaining the information content in electronic ticket, and methods described includes:
Obtain electronic ticket at the beginning of between and local current time;
Between at the beginning of in the electronic ticket when after the local current time, the beginning in the electronic ticket is calculated
Time and the difference of the local current time, obtain differing the period;
The difference period is less than or equal to the first preset time period and the change of the signal intensity of wireless network meets
During preset rules, the information content in the electronic ticket is obtained;
The information content in the electronic ticket is preserved to terminal.
In such scheme, it is described acquisition electronic ticket at the beginning of between and local current time before, methods described is also
Including:
The function of obtaining the information content in electronic ticket is opened according to activation instruction.
In such scheme, it is described acquisition electronic ticket at the beginning of between and local current time after, in the calculating
Between at the beginning of in the electronic ticket with before the difference of the local current time, methods described also includes:
Between at the beginning of judging in the electronic ticket whether after the local current time;
It is described obtain differing the period after, before the information content obtained in the electronic ticket, the side
Method also includes:
Judge whether the difference period is less than or equal to the first preset time period and the signal of the wireless network is strong
Whether the change of degree meets preset rules.
In such scheme, the information content by the electronic ticket is preserved to terminal, including:
The information content in the electronic ticket is preserved to terminal with graphic form.
In such scheme, the preset rules include:In the second preset time period, the letter of the wireless network of the very first time
Number intensity be more than the signal intensity of the wireless network of the second time and the wireless network of the second time signal intensity be more than it is default
The rule of the signal intensity of wireless network, wherein, the very first time is with second time in second preset time period
It is interior, the very first time before second time, the very first time be the local current time or it is described first when
Between after the local current time, second time in the electronic ticket at the beginning of between before;
Or, the preset rules include:In the second preset time period, the signal intensity of the wireless network of the very first time is big
It is more than default wireless network in the signal intensity of the wireless network of the second time and the signal intensity of the wireless network of the second time
Signal intensity rule, wherein, period between the very first time and second time for described second it is default when
Between section, the very first time, the very first time was the local current time or described first before second time
Time after the local current time, second time in the electronic ticket at the beginning of between before.
The present invention also provides a kind of equipment for obtaining the information content in electronic ticket, and the equipment includes:Interface, processing
Device, memory and communication bus;
The communication bus, for realizing the connection communication between the interface, the processor and the memory;
The processor, for performing the program of the information content in the acquisition electronic ticket stored in the memory, with
Realize following steps:
Obtain electronic ticket at the beginning of between and local current time;
Between at the beginning of in the electronic ticket when after the local current time, the beginning in the electronic ticket is calculated
Time and the difference of the local current time, obtain differing the period;
The difference period is less than or equal to the first preset time period and the change of the signal intensity of wireless network meets
During preset rules, the information content in the electronic ticket is obtained;
The information content in the electronic ticket is preserved to terminal.
In such scheme, the processor, it is additionally operable to perform the program for obtaining the information content in electronic ticket, with reality
Existing following steps:
The function of obtaining the information content in electronic ticket is opened according to activation instruction.
In such scheme, the processor, it is additionally operable to perform the program for obtaining the information content in electronic ticket, with reality
Existing following steps:
Between at the beginning of judging in the electronic ticket whether after the local current time;
The processor, it is additionally operable to perform the program of the information content in the acquisition electronic ticket, to realize following steps:
Judge whether the difference period is less than or equal to the first preset time period and the signal of the wireless network is strong
Whether the change of degree meets preset rules.
In such scheme, the processor, for performing the program of the information content in the acquisition electronic ticket, with specific
Realize following steps:
The information content in the electronic ticket is preserved to terminal with graphic form.
The present invention also provides a kind of computer-readable recording medium, the computer-readable recording medium storage have one or
The multiple programs of person, one or more of programs can be by one or more computing devices, to realize as described above obtain
The step of taking the method for the information content in electronic ticket.
The method and apparatus of the information content in acquisition electronic ticket provided by the invention, by obtaining the beginning in electronic ticket
Time and the local current time of terminal itself;Between at the beginning of in electronic ticket when after local current time, electricity is calculated
Difference between at the beginning of in sub- ticket with local current time, obtain differing the period;It is less than or equal to the in the difference period
When the change of one preset time period and the signal intensity of wireless network meets preset rules, the information content in electronic ticket is obtained;
The information content in electronic ticket is preserved to equipment;Between at the beginning of by obtaining in electronic ticket and detection device it is wireless
The change of the signal intensity of network, upon start between approach and the change of the signal intensity of the wireless network of equipment meets default rule
When then, equipment obtains the information content in electronic ticket and preserved to equipment automatically, and so, user is bad in network environment
In the environment of when the information content in electronic ticket is checked using internet, it is preferably local without being moved to network environment, can be with
The information content directly checked in equipment in the electronic ticket, has effectively saved the time, improves convenience and degree of intelligence.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for an optional mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is the communications network system structural representation that mobile terminal provided in an embodiment of the present invention can operate;
Fig. 3 is the flow chart of the embodiment of the method one of the information content in present invention acquisition electronic ticket;
Fig. 4 is the flow chart of the embodiment of the method two of the information content in present invention acquisition electronic ticket;
Fig. 5 is the schematic diagram of a scenario one of the embodiment of the method two of the information content in present invention acquisition electronic ticket;
Fig. 6 is the schematic diagram of a scenario two of the embodiment of the method two of the information content in present invention acquisition electronic ticket;
Fig. 7 is the schematic diagram of a scenario three of the embodiment of the method two of the information content in present invention acquisition electronic ticket;
Fig. 8 is the structural representation of the device embodiment of the information content in present invention acquisition electronic ticket;
Fig. 9 is the structural representation of the apparatus embodiments of the information content in present invention acquisition electronic ticket.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes.
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only
Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board
Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move
Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, Fig. 1 is the hardware configuration signal for an optional mobile terminal for realizing each embodiment of the present invention
Figure, the mobile terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output
Unit 103, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface
The parts such as unit 108, memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that show in Fig. 1
The mobile terminal structure gone out does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less portions
Part, either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate
Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need
To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or
It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103
The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared
Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited
Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel
1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can
Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage
Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters
Row description.
Show referring to Fig. 2, Fig. 2 is the communications network system structure that mobile terminal provided in an embodiment of the present invention can operate
It is intended to, the communications network system is the LTE system of universal mobile communications technology, and the LTE system includes communicating the UE of connection successively
(User Equipment, user equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access
Network, evolved UMTS Terrestrial radio access network) 202, EPC (Evolved Packet Core, evolved block core
Net) 203 and operator IP operation 204.
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers
Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc.
The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
Embodiment one
Fig. 3 is the flow chart of the embodiment of the method one of the information content in present invention acquisition electronic ticket, and the present invention obtains electricity
The method of the information content in sub- ticket can be applied in the terminal for obtaining the information content in electronic ticket, in the embodiment of the present invention
The terminal of the information content in the acquisition electronic ticket of description can include such as mobile phone, smart phone, notebook computer, number
Word radio receiver, personal digital assistant (PDA), tablet personal computer (PAD), portable media player (PMP), guider
Etc. terminal.
If terminal has operating system, the operating system can be UNIX, Linux, Windows, Mac OS X, Android
(Android), Windows Phone etc..
Application software (Application, APP) is the third party application of intelligent terminal, and user can be by various
The application software of various kinds is handled official business, is entertained, obtains information etc., and its form includes such as ipa, pxl, deb, apk lattice
Formula.
As shown in figure 3, the method provided in an embodiment of the present invention for obtaining the information content in electronic ticket comprises the following steps:
Step 301, obtain electronic ticket at the beginning of between and local current time.
Between at the beginning of obtaining in terminal (hereinafter referred to as terminal) the acquisition electronic ticket of the information content in electronic ticket and eventually
Hold the local current time of itself;Wherein, electronic ticket can be electronic motion picture ticket, electronic railway ticket, aircraft electronic ticket, electronic gate
The a series of electronic bill of ticket etc., user can utilize the corresponding electronic ticket in terminal to apply and check these by internet
The content of electronic ticket;User only needs a terminal greatly square without papery so that a variety of different electronic tickets to be carried
People routine use.
Between at the beginning of in step 302, the electronic ticket when after the local current time, the electronic ticket is calculated
With the difference of the local current time between at the beginning of interior, obtain differing the period.
In this step, whether it is in local current time between at the beginning of in the electronic ticket that terminal first can judge to get
Afterwards, if between at the beginning of in the electronic ticket for judging to determine to get not after local current time, without follow-up
Processing;If between at the beginning of in the electronic ticket for judging to determine to get after local current time, continue to calculate electronics
Difference between at the beginning of in ticket with local current time, obtain differing the period.
For example, be 2017-08-22 between at the beginning of in the electronic ticket that gets of terminal, 14:00, local current time is
2017-08-22,13:00;Judgement determines 14:00 13:After 00, then 14 are calculated:00 and 13:Difference between 00, is obtained
It it is 1 hour, i.e., 60 minutes to the difference period.
Step 303, the difference period are less than or equal to the first preset time period and the signal intensity of wireless network
When change meets preset rules, the information content in the electronic ticket is obtained.
In this step, terminal can carry out the judgement of two kinds of information, and it is pre- to be only less than or equal to first in the difference period
If the change of the signal intensity of period and wireless network meets preset rules, follow-up processing task could be carried out.
For example, terminal can first judge to differ whether the period is less than or equal to the first preset time period, if judging true
Make difference the period be more than the first preset time period, then without subsequent treatment;If judgement determines that differing the period is less than
Or equal to the first preset time period, then whether the signal intensity for continuing to judge wireless network is to meet preset rules, if judging true
The signal intensity for making wireless network does not meet preset rules, then without subsequent treatment;If wireless network is determined in judgement
The change of signal intensity meets preset rules, then terminal obtains the information content in electronic ticket;Only differ period and nothing
When the change of the signal intensity of gauze network all meets Rule of judgment, follow-up processing task could be carried out.
Specifically, the first preset time period here can be configured according to the actual requirements, it is not any limitation as herein;This
In preset rules can also be configured according to the actual requirements, as long as can interpolate that the signal for the wireless network for determining terminal
Intensity as time goes by by die down by force and the signal intensity of the wireless network of terminal be consistently greater than be capable of proper communication
The signal intensity of wireless network, wireless network here is data network or WLAN (Wireless Local
Area Networks, WLAN), being capable of the signal intensity of the wireless network of proper communication can be carried out according to user's actual need
Set, for example, on the basis of upstream rate or downstream rate, can also be on the basis of packet loss, can also be using time delay as base
Standard etc..
Terminal can obtain the information content in electronic ticket by built-in screenshotss instrument, can also pass through word processing work
Tool obtains the information content in electronic ticket.
Step 304, the information content in the electronic ticket preserved to terminal.
, can be by electronic ticket when terminal determines to need to be preserved the information content in electronic ticket in step 303
The information content is preserved to terminal, is checked and is used for user;Specifically, terminal loads the content of electronic ticket by wireless network
And after the information content in electronic ticket is got using screenshotss instrument, the information content in electronic ticket can be protected with graphic form
Exist in the photograph album of terminal;, can be by electronic ticket after terminal gets the information content in electronic ticket using the Type tool
The information content is stored in the memorandum of terminal in the form of text.
The method of the information content in acquisition electronic ticket provided in an embodiment of the present invention, terminal is by obtaining in electronic ticket
Time started and the local current time of terminal itself;Between at the beginning of in electronic ticket when after local current time, meter
Difference between at the beginning of calculating in electronic ticket with local current time, obtain differing the period;It is less than or waits in the difference period
When the change of the first preset time period and the signal intensity of wireless network meets preset rules, the information in electronic ticket is obtained
Content;The information content in electronic ticket is preserved to terminal;Between at the beginning of being obtained by terminal in electronic ticket and detect
The change of the signal intensity of the wireless network of terminal, upon start between approach and the signal intensity of the wireless network of terminal change
When meeting preset rules, terminal obtains the information content in electronic ticket and preserved to terminal automatically, and so, user is in net
It is preferable without being moved to network environment when the information content in electronic ticket is checked using internet under the bad environment of network environment
Place, the information content that directly can be checked in terminal in the electronic ticket, has effectively saved the time, improve convenience and
Degree of intelligence.
It is further to illustrate on the basis of above-described embodiment in order to more embody the purpose of the present invention.
Embodiment two
Fig. 4 obtains the flow chart of the embodiment of the method two of the information content in electronic ticket, the embodiment of the present invention for the present invention
The method of the information content in the acquisition electronic ticket of offer is applied on smart mobile phone, there is multiple different electronic tickets on smart mobile phone
Application, user can pass through these information contents that be checked using internet in corresponding electronic ticket of application;Multiple different electricity
The processing method of the processing method of sub- ticket and an electronic ticket is identical, therefore, in embodiments of the present invention, only with pin
The processing method of one electronic ticket is illustrated.
As shown in figure 4, it is provided in an embodiment of the present invention obtain electronic ticket in the information content method can include it is as follows
Step:
Step 401, the function of obtaining the information content in electronic ticket is opened according to activation instruction.
Smart mobile phone opens the function of obtaining the information content in electronic ticket according to activation instruction, that is, opens and obtain electronic ticket
After the function of the interior information content, smart mobile phone can be with the electronic ticket in all applications in scanning system, can also be according to pre-
The white list first set, scan the electronic ticket in all applications in white list;Specifically, in order to ensure the treatability of smart mobile phone
Energy and endurance, can set a functional switch for obtaining the information content in electronic ticket, and user is needing the function
When, can by activation instruction come open obtain electronic ticket in the information content function;The activation instruction can be to set
The functional switch in menu is put, user, which opens the functional switch, can realize the information content that unlatching is obtained in electronic ticket
Function, the information obtained in electronic ticket can also be opened in one figure pre-set of screen lock state lower slider using finger
The function of content.
Only come in embodiments of the present invention with two kinds of different activation instructions for example, specific activation instruction can root
It is configured according to actual demand, is not any limitation as herein.
Step 402, obtain electronic ticket at the beginning of between and local current time.
Smart mobile phone after the function of obtaining the information content in electronic ticket is opened, at the beginning of obtaining in electronic ticket between
And the local current time in smart mobile phone its own system.
For example, illustrate by taking the scene of electronic motion picture ticket as an example;Fig. 5 is the information content in present invention acquisition electronic ticket
The schematic diagram of a scenario one of embodiment of the method two, as shown in figure 5, smart mobile phone is obtained in A applications (application on film ticket)
It is 2017-08-22 between at the beginning of in electronic motion picture ticket, 14:00, local current time is 2017-08-22,13:50.
Step 403, judge in electronic ticket at the beginning of between whether after local current time.
Smart mobile phone judge in electronic ticket at the beginning of between whether after local current time, if judging to determine electronics
Between at the beginning of in ticket not after local current time, then step 404 is performed;At the beginning of if judgement is determined in electronic ticket
Between after local current time, then perform step 405.
Then above-mentioned steps is for example bright, smart mobile phone judge in electronic motion picture ticket at the beginning of between 2017-08-
22,14:00 in local current time 2017-08-22, and 13:After 50, thus may determine that performing step 405.
Step 404, terminate processing task.
Smart mobile phone terminates currently processed task.
Difference between at the beginning of in step 405, calculating electronic ticket with local current time, obtains differing the period.
Smart mobile phone after local current time, calculates opening in electronic ticket between at the beginning of determining in electronic ticket
Begin time and the difference of local current time, obtains differing the period.
Then above-mentioned steps is for example bright, smart mobile phone calculate in electronic motion picture ticket at the beginning of between 2017-08-
22,14:00 and local current time 2017-08-22,13:50 difference, obtain differing the period as 10 minutes.
Step 406, judge to differ whether the period is less than or equal to the first preset time period.
Smart mobile phone judges to differ whether the period is less than or equal to the first preset time period, if judge to determine difference
Between section be more than the first preset time period, then perform step 407;It is pre- that if judgement determines that the difference period is less than or equal to first
If the period, then step 408 is performed;Wherein, the first preset time period here can be set according to the actual demand of user
Put, be not limited herein.
Then above-mentioned steps is for example bright, and the first preset time period is 15 minutes, it is seen then that 10 minutes periods of difference
Less than the first preset time period 15 minutes, step 408 is continued executing with.
Step 407, terminate processing task.
Smart mobile phone terminates currently processed task.
Step 408, judge whether the change of signal intensity of wireless network meets preset rules.
Smart mobile phone may proceed to judge after judging to determine that differing the period is less than or equal to the first preset time period
Whether the change of the signal intensity of the wireless network of smart mobile phone meets preset rules, if judging to determine the wireless of smart mobile phone
The change of the signal intensity of network does not meet preset rules, then performs step 409;If judge to determine the wireless network of smart mobile phone
The change of the signal intensity of network meets preset rules, then performs step 410.
Specifically, preset rules include:In the second preset time period, the signal intensity of the wireless network of the very first time is big
It is more than default wireless network in the signal intensity of the wireless network of the second time and the signal intensity of the wireless network of the second time
Signal intensity rule, wherein, the very first time and the second time, the very first time was in the second time in the second preset time period
Before, the very first time be local current time or the very first time after local current time, the second time is in electronic ticket
Before time started.
Or preset rules include:In the second preset time period, the signal intensity of the wireless network of the very first time is more than
The signal intensity of the wireless network of the signal intensity of the wireless network of second time and the second time is more than default wireless network
The rule of signal intensity, wherein, the period between the very first time and the second time is second preset time period, when first
Between before the second time, the very first time be local current time or the very first time after local current time, the second time
Before between at the beginning of in electronic ticket.
Wherein, the second preset time period here can also be configured according to the actual demand of user, be not subject to herein
Limit, as long as between at the beginning of the second preset time period being local current time or after local current time, second is pre-
If the end time of period in electronic ticket at the beginning of between before;In addition, the signal intensity of default wireless network can
Be configured with the actual demand according to user, such as on the basis of upstream rate or downstream rate, can also using packet loss as
Benchmark, it can also not be limited herein, as long as being capable of proper communication on the basis of time delay etc..
Here wireless network is data network or WLAN.
Then above-mentioned steps is for example bright, the second preset time period be 5 minutes, the second preset time period first when
Between be 2017-08-22,13:50, the second time of the second preset time period is 2017-08-22,13:52;Preset data network
Signal intensity be -110dbm (dbm is the unit of an expression power absolute value), in the second preset time period, when first
Between 2017-08-22,13:The signal intensity of 50 data network is -75dbm, the second time 2017-08-22,13:52 data
The signal intensity of network is -100dbm, and the change that smart mobile phone judges to determine the signal intensity of data network meets default rule
Then, i.e., in 5 minutes, 2017-08-22,13:Signal intensity-the 75dbm of 50 data network is more than 2017-08-22, and 13:52
Data network signal intensity -100dbm and 2017-08-22,13:Signal intensity-the 100dbm of 52 data network is more than
Signal intensity-the 110dbm of preset data network.
Step 409, terminate processing task.
Smart mobile phone terminates currently processed task.
The information content in step 410, acquisition electronic ticket.
For smart mobile phone after determining that the change of signal intensity of wireless network meets preset rules, smart mobile phone passes through number
The content of electronic ticket is loaded according to network and obtains the information content in electronic ticket.
Then above-mentioned steps is for example bright, and Fig. 6 is the method implementation that the present invention obtains the information content in electronic ticket
The schematic diagram of a scenario two of example two, as shown in fig. 6, smart mobile phone makes the content of A application loading electronic motion picture tickets by data network,
Get the information content in electronic motion picture ticket.
Step 411, the information content in electronic ticket preserved to smart mobile phone with graphic form.
Smart mobile phone preserves the information content in the electronic ticket got to intelligence using sectional drawing instrument with graphic form
In picture library in mobile phone, for users to use.
Then above-mentioned steps is for example bright, as shown in fig. 6, the electronic motion picture that smart mobile phone applies the A got
The information content in ticket is preserved in the picture library to smart mobile phone using sectional drawing instrument with graphic form.
Fig. 7 is the schematic diagram of a scenario three of the embodiment of the method two of the information content in present invention acquisition electronic ticket, such as Fig. 7 institutes
Show, bad in current network conditions, in the case of can not normally accessing A applications, user can be directly entered the figure of smart mobile phone
The electronic motion picture ticket of A applications is checked in storehouse, facilitates the follow-up use of user;So, in user's power taking movie ticket, even if data network
Network is bad, is also unaffected.
The method of the information content in acquisition electronic ticket provided in an embodiment of the present invention, smart mobile phone are opened according to activation instruction
Open the function of obtaining the information content in electronic ticket;Obtain electronic ticket at the beginning of between and local current time;Judge electronics
Between at the beginning of in ticket whether after local current time;Between judging at the beginning of determining in electronic ticket when local is current
Between after when, at the beginning of calculating in electronic ticket between difference with local current time, obtain differing the period;When judging difference
Between section whether be less than or equal to the first preset time period;Judging to determine that differing the period is less than or equal to the first preset time
Duan Shi, continues to judge whether the change of the signal intensity of wireless network meets preset rules;It is strong in the signal for judging wireless network
When the change of degree meets preset rules, the information content in electronic ticket is obtained;By the information content in electronic ticket with graphic form
Preserve to terminal;By smart mobile phone obtain electronic ticket at the beginning of between and detection smart mobile phone data network letter
The change of number intensity, upon start between approach and the change of the signal intensity of the data network of smart mobile phone meets preset rules
When, smart mobile phone obtains the information content in electronic ticket and preserved to smart mobile phone automatically, and so, user is in network rings
When the information content in electronic ticket is checked using internet under the bad environment in border, without being moved to network environment preferably
Side, the information content that directly can be checked in smart mobile phone in the electronic ticket, has effectively saved the time, has improved facility
Property.
Embodiment three
Fig. 8 is the structural representation of the device embodiment of the information content in present invention acquisition electronic ticket, as shown in figure 8,
The device 08 of the information content in acquisition electronic ticket provided in an embodiment of the present invention includes:
First acquisition module 81, for obtaining in electronic ticket at the beginning of between and local current time;
Computing module 82, for when after the local current time, calculating between at the beginning of in the electronic ticket
Difference between at the beginning of in the electronic ticket with the local current time, obtain differing the period;
Second acquisition module 83, for being less than or equal to the first preset time period and wireless network in the difference period
When the change of the signal intensity of network meets preset rules, the information content in the electronic ticket is obtained;
Preserving module 84, for the information content in the electronic ticket to be preserved to terminal.
Further, described device also includes:
Opening module 85, the function of the information content in electronic ticket is obtained for being opened according to activation instruction.
Further, described device also includes:
Judge module 86, for judging in the electronic ticket at the beginning of between whether after the local current time;
The judge module 86, be additionally operable to judge the difference period whether be less than or equal to the first preset time period,
And whether the change of the signal intensity of the wireless network meets preset rules.
Further, the preserving module 84, specifically for the information content in the electronic ticket is protected with graphic form
Deposit to terminal.
Further, the preset rules include:In the second preset time period, the signal of the wireless network of the very first time
Intensity is more than the signal intensity of the wireless network of the second time and the signal intensity of the wireless network of the second time is more than default nothing
The rule of the signal intensity of gauze network, wherein, the very first time and second time in second preset time period,
The very first time, the very first time was to exist the local current time or the very first time before second time
After the local current time, second time in the electronic ticket at the beginning of between before;
Or, the preset rules include:In the second preset time period, the signal intensity of the wireless network of the very first time is big
It is more than default wireless network in the signal intensity of the wireless network of the second time and the signal intensity of the wireless network of the second time
Signal intensity rule, wherein, period between the very first time and second time for described second it is default when
Between section, the very first time, the very first time was the local current time or described first before second time
Time after the local current time, second time in the electronic ticket at the beginning of between before.
Further, the wireless network is data network or WLAN.
The device of the present embodiment, can be used for performing it is above-mentioned shown in embodiment of the method technical scheme, its realization principle and
Technique effect is similar, and here is omitted.
In actual applications, first acquisition module 81, computing module 82, the second acquisition module 83, preserving module 84,
Opening module 85, judge module 86 can be by the central processing units in the device 08 for obtaining the information content in electronic ticket
(Central Processing Unit, CPU), microprocessor (Micro Processor Unit, MPU), Digital Signal Processing
Device (Digital Signal Processor, DSP) or field programmable gate array (Field Programmable Gate
Array, FPGA) etc. realize.
Example IV
Fig. 9 is the structural representation of the apparatus embodiments of the information content in present invention acquisition electronic ticket, as shown in figure 9,
The equipment 09 of the information content in acquisition electronic ticket provided in an embodiment of the present invention includes:Interface 91, processor 92, memory 93
And communication bus 94;
Wherein, the communication bus 94, for realizing between the interface 91, the processor 92 and the memory 93
Connection communication;
The processor 92, for performing the journey of the information content in the acquisition electronic ticket stored in the memory 93
Sequence, to realize following steps:
Obtain electronic ticket at the beginning of between and local current time;
Between at the beginning of in the electronic ticket when after the local current time, the beginning in the electronic ticket is calculated
Time and the difference of the local current time, obtain differing the period;
The difference period is less than or equal to the first preset time period and the change of the signal intensity of wireless network meets
During preset rules, the information content in the electronic ticket is obtained;
The information content in the electronic ticket is preserved to terminal.
Further, the processor 92, it is additionally operable to perform the program of the information content in the acquisition electronic ticket, with reality
Existing following steps:
The function of obtaining the information content in electronic ticket is opened according to activation instruction.
Further, the processor 92, it is additionally operable to perform the program of the information content in the acquisition electronic ticket, with reality
Existing following steps:
Between at the beginning of judging in the electronic ticket whether after the local current time;
The processor 92, it is additionally operable to perform the program of the information content in the acquisition electronic ticket, to realize following walk
Suddenly:
Judge whether the difference period is less than or equal to the first preset time period and the signal of the wireless network is strong
Whether the change of degree meets preset rules.
Further, the processor 92, for performing the program of the information content in the acquisition electronic ticket, with specific
Realize following steps:
The information content in the electronic ticket is preserved to terminal with graphic form.
Further, the preset rules include:In the second preset time period, the signal of the wireless network of the very first time
Intensity is more than the signal intensity of the wireless network of the second time and the signal intensity of the wireless network of the second time is more than default nothing
The rule of the signal intensity of gauze network, wherein, the very first time and second time in second preset time period,
The very first time, the very first time was to exist the local current time or the very first time before second time
After the local current time, second time in the electronic ticket at the beginning of between before;
Or, the preset rules include:In the second preset time period, the signal intensity of the wireless network of the very first time is big
It is more than default wireless network in the signal intensity of the wireless network of the second time and the signal intensity of the wireless network of the second time
Signal intensity rule, wherein, period between the very first time and second time for described second it is default when
Between section, the very first time, the very first time was the local current time or described first before second time
Time after the local current time, second time in the electronic ticket at the beginning of between before.
Further, the wireless network is data network or WLAN.
As shown in figure 9, the equipment 09 for obtaining the information content in electronic ticket can be that mobile phone, computer, numeral are wide
Broadcast terminal, information transceiving equipment, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.;It can manage
Solution, communication bus 94 is in addition to including data/address bus, in addition to power bus, controlling bus and status signal bus in addition, but is
For the sake of clear explanation, in fig.9 various buses are all designated as communication bus 94.
Wherein, interface 91 can include display, keyboard, mouse, trace ball, click wheel, button, button, touch-sensitive plate or
Person's touch-screen etc.;Interface 91 can also receive and send the various signals that can be supported, such as control signal, data-signal, shape
State signal etc..
It is appreciated that memory 93 can be volatile memory or nonvolatile memory, may also comprise volatibility and
Both nonvolatile memories;Wherein, nonvolatile memory can be read-only storage (ROM, Read Only Memory),
Programmable read only memory (PROM, Programmable Read-Only Memory), Erasable Programmable Read Only Memory EPROM
(EPROM, Erasable Programmable Read-Only Memory), Electrically Erasable Read Only Memory
(EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic random access store
Device (FRAM, ferromagnetic random access memory), flash memory (Flash Memory), magnetic surface are deposited
Reservoir, CD or read-only optical disc (CD-ROM, Compact Disc Read-Only Memory);Magnetic surface storage can be
Magnetic disk storage or magnetic tape storage;Volatile memory can be random access memory (RAM, Random Access
Memory), it is used as External Cache.By exemplary but be not restricted explanation, the RAM of many forms can use, such as
Static RAM (SRAM, Static Random Access Memory), synchronous static RAM
(SSRAM, Synchronous Static Random Access Memory), dynamic random access memory (DRAM,
Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous
Dynamic Random Access Memory), double data speed synchronous dynamic RAM (DDRSDRAM,
Double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random
Access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronized links
Dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct rambus
Random access memory (DRRAM, Direct Rambus Random Access Memory);Description of the embodiment of the present invention is deposited
Reservoir 93 is intended to the memory of including but not limited to these and any other suitable type.
Memory 93 in the embodiment of the present invention is used to store various types of data to support to obtain the letter in electronic ticket
Cease the operation of the equipment 09 of content;The example of these data includes:For in the equipment 09 for obtaining the information content in electronic ticket
Any computer program of upper operation, as operating system and application program, contact data, telephone book data, message, picture,
Video etc.;Wherein, operating system includes various system programs, such as ccf layer, core library layer, driving layer etc., each for realizing
Kind basic business and the hardware based task of processing;Application program can include various application programs, such as media player
(Media Player), browser (Browser) etc., for realizing various applied business;Realize present invention method
Program may be embodied in application program.
The method that the embodiments of the present invention disclose can apply in processor 92, or be realized by processor 92;Place
It is probably a kind of IC chip to manage device 92, has the disposal ability of signal;In implementation process, each step of the above method
It can be completed by the integrated logic circuit of the hardware in processor 92 or the instruction of software form;Above-mentioned processor 92 can
To be general processor, digital signal processor (DSP, Digital Signal Processor), or other programmable are patrolled
Collect device, discrete gate or transistor logic, discrete hardware components etc.;The present invention can be realized or performed to processor 92
Disclosed each method, step and logic diagram in embodiment;General processor can be microprocessor or any conventional
Processor etc.;The step of method with reference to disclosed in the embodiment of the present invention, hardware decoding processor execution can be embodied directly in
Complete, or completion is performed with the hardware in decoding processor and software module combination;Software module can be located at storage medium
In, the storage medium is located at memory 93, and processor 92 reads the information in memory 93, and preceding method is completed with reference to its hardware
The step of.
In the exemplary embodiment, the equipment 09 for obtaining the information content in electronic ticket can be special by one or more application
With integrated circuit (ASIC, Application Specific Integrated Circuit), DSP, PLD
(PLD, Programmable Logic Device), CPLD (CPLD, Complex Programmable
Logic Device), field programmable gate array (FPGA, Field-Programmable Gate Array), general procedure
Device, controller, microcontroller (MCU, Micro Controller Unit), microprocessor (Microprocessor) or other
Electronic component is realized, for performing preceding method.
The equipment of the present embodiment, can be used for performing it is above-mentioned shown in embodiment of the method technical scheme, its realization principle and
Technique effect is similar, and here is omitted.
Embodiment five
The present invention also provides a kind of computer-readable recording medium, computer-readable recording medium can be FRAM, ROM,
The memory such as PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, CD or CD-ROM;It can also be bag
The various equipment of one of above-mentioned memory or any combination are included, such as mobile phone, computer, tablet device, personal digital assistant
Deng;The computer-readable recording medium storage has one or more program, and one or more of programs can be by one
Or multiple computing devices, to realize following steps:
Obtain electronic ticket at the beginning of between and local current time;
Between at the beginning of in the electronic ticket when after the local current time, the beginning in the electronic ticket is calculated
Time and the difference of the local current time, obtain differing the period;
The difference period is less than or equal to the first preset time period and the change of the signal intensity of wireless network meets
During preset rules, the information content in the electronic ticket is obtained;
The information content in the electronic ticket is preserved to terminal.
Further, one or more of programs can also be by one or more of computing devices, to realize
Following steps:
The function of obtaining the information content in electronic ticket is opened according to activation instruction.
Further, one or more of programs can also be by one or more of computing devices, to realize
Following steps:
Between at the beginning of judging in the electronic ticket whether after the local current time;
One or more of programs can also be by one or more of computing devices, to realize following steps:
Judge whether the difference period is less than or equal to the first preset time period and the signal of the wireless network is strong
Whether the change of degree meets preset rules.
Further, one or more of programs can be by one or more of computing devices, with specific real
Existing following steps:
The information content in the electronic ticket is preserved to terminal with graphic form.
Further, the preset rules include:In the second preset time period, the signal of the wireless network of the very first time
Intensity is more than the signal intensity of the wireless network of the second time and the signal intensity of the wireless network of the second time is more than default nothing
The rule of the signal intensity of gauze network, wherein, the very first time and second time in second preset time period,
The very first time, the very first time was to exist the local current time or the very first time before second time
After the local current time, second time in the electronic ticket at the beginning of between before;
Or, the preset rules include:In the second preset time period, the signal intensity of the wireless network of the very first time is big
It is more than default wireless network in the signal intensity of the wireless network of the second time and the signal intensity of the wireless network of the second time
Signal intensity rule, wherein, period between the very first time and second time for described second it is default when
Between section, the very first time, the very first time was the local current time or described first before second time
Time after the local current time, second time in the electronic ticket at the beginning of between before.
Further, the wireless network is data network or WLAN.
The computer-readable recording medium of the present embodiment, it can be used for the technical side for performing above-mentioned shown embodiment of the method
Case, its implementing principle and technical effect is similar, and here is omitted.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service
Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot
Form, these are belonged within the protection of the present invention.