CN114567514A - Method for ordering flow packets in batches by machine cards of mobile resale system - Google Patents
Method for ordering flow packets in batches by machine cards of mobile resale system Download PDFInfo
- Publication number
- CN114567514A CN114567514A CN202210088366.3A CN202210088366A CN114567514A CN 114567514 A CN114567514 A CN 114567514A CN 202210088366 A CN202210088366 A CN 202210088366A CN 114567514 A CN114567514 A CN 114567514A
- Authority
- CN
- China
- Prior art keywords
- flow
- file
- content
- ordering
- mobile
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/14—Charging, metering or billing arrangements for data wireline or wireless communications
- H04L12/1403—Architecture for metering, charging or billing
-
- 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
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Lists, e.g. purchase orders, compilation or processing
- G06Q30/0635—Processing of requisition or of purchase orders
- G06Q30/0637—Approvals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/14—Charging, metering or billing arrangements for data wireline or wireless communications
- H04L12/1453—Methods or systems for payment or settlement of the charges for data transmission involving significant interaction with the data transmission network
Abstract
The invention discloses a method for ordering flow packets in batches by machine cards of a mobile resale system, relating to the technical field of mobile resale service; the method comprises the following steps: s10, obtaining the uploaded number file by using php, and obtaining the content in the number file, wherein the content comprises a number; s20, judging whether the file content exists; s30, judging whether the number in the file content exists or not; s40, judging whether the traffic packet name exists; s50, operation is successful; s60, acquiring the content of the number file; s70, using the content of the foreach loop number file; s80, acquiring the amount of the traffic packet according to the traffic packet name; s90, acquiring balance corresponding to the number; s100, deducting balance corresponding to the number according to the amount of the flow packet, and increasing flow to the number according to the amount of the flow packet; s110, successfully ordering the flow packet; the invention has the beneficial effects that: and the flow package ordering can be realized in batches, the flow package ordering speed is increased, the labor intensity of workers is reduced, and the customer experience is better.
Description
Technical Field
The invention relates to the technical field of mobile resale service, in particular to a method for ordering flow packets in batches by machine cards of a mobile resale system.
Background
The mobile communication reselling service refers to a mobile communication service which is purchased from a basic telecommunication service operator with a mobile network, repackaged into a self-owned brand and sold to an end user. With the whole business operation of the telecommunication industry, the functional experience of users on mobile phones is more and more abundant. The development of new services such as mobile phone color ring, wireless internet access, voice fusion and the like truly brings brand new mobile life to users.
When the flow in the package of the machine card is used up, the machine card used in the mobile resale service generates high flow fee by using the flow outside the package, and the use cost of the customer is increased because the function of automatically ordering the flow packet is not provided. Meanwhile, the speed of ordering the flow packet by a single card is low, when a plurality of cards need to be operated together, the front-end pages need to be operated one by one, and the operation is very troublesome, so that the realization is difficult.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides a method for ordering flow packages in batches by a mobile resale system machine card.
The technical scheme adopted by the invention for solving the technical problems is as follows: the method for ordering the flow packages in batch by the machine cards of the mobile resale system is improved by comprising a processing method for ordering the flow packages in batch by the machine cards php and a processing method for ordering the flow packages in batch by the asynchronous php machine cards, wherein the processing method for ordering the flow packages in batch by the machine cards php comprises the following steps:
s10, obtaining the uploaded number file by using php, and obtaining the content in the number file, wherein the content comprises a number;
s20, judging whether the file content exists, and if so, entering the next step;
s30, judging whether the number in the file content exists or not, and entering the next step when the number exists;
s40, judging whether the traffic packet name exists, and if yes, entering the next step;
s50, successfully operating, and entering the processing method of the batch ordering flow package script of the asynchronous php machine card;
the processing method for the batch ordering of the flow package scripts by the asynchronous php machine card comprises the following steps:
s60, acquiring the content of the number file;
s70, using the content of the foreach circular number file to separately obtain the number in each number file, and circularly processing one number each time;
s80, acquiring the amount of the traffic packet according to the traffic packet name;
s90, obtaining the balance corresponding to the number, judging whether the balance of the number is less than the balance of the flow packet, and entering the next step when the balance of the number is greater than the balance of the flow packet;
s100, deducting balance corresponding to the number according to the amount of the flow packet, and adding flow to the number according to the amount of the flow packet;
and S110, successfully ordering the flow packet.
Further, in step S10, the file format of the file is txt.
Further, in step S20, when there is no file content, an error is reported, and the error reporting content is: the file content does not exist and is requested to be uploaded again.
Further, in step S30, an error is reported when the number in the file content does not exist, and the error content is: the number does not have to be uploaded again.
Further, in step S40, an error is reported when the traffic packet name does not exist, and the error content is: the traffic packet name does not exist and requests to be uploaded again.
Further, in step S90, when the balance of the number is less than the balance of the flow packet, the subscription fails.
Further, the number and the error content are added to the "subscription flow failure table".
Further, in step S110, the number is stored in the "ordered flow packet success table" and a log is printed.
The invention has the beneficial effects that: the method for ordering the flow packets in batches by the machine cards of the mobile resale system can realize the function of ordering the flow packets, does not cause high flow cost for customers, can realize the ordering of the flow packets in batches, accelerates the ordering speed of the flow packets, reduces the labor intensity of workers and ensures better customer experience.
Drawings
Fig. 1 is a schematic flow chart of a method for ordering flow packets in bulk by a mobile resale system machine card according to the present invention.
Fig. 2 is a schematic diagram of implementation of a machine card batch ordering flow packet page in the invention.
Fig. 3 is a flow diagram illustrating a method for processing a machine card batch order flow packet php according to the present invention.
Fig. 4 is a flowchart illustrating a processing method for batch ordering of a flow package script by an asynchronous php machine card according to the present invention.
Detailed Description
The invention is further illustrated with reference to the following figures and examples.
The conception, the specific structure, and the technical effects produced by the present invention will be clearly and completely described below in conjunction with the embodiments and the accompanying drawings to fully understand the objects, the features, and the effects of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments, and those skilled in the art can obtain other embodiments without inventive effort based on the embodiments of the present invention, and all embodiments are within the protection scope of the present invention. In addition, all the connection/connection relations referred to in the patent do not mean that the components are directly connected, but mean that a better connection structure can be formed by adding or reducing connection auxiliary components according to specific implementation conditions. All technical characteristics in the invention can be interactively combined on the premise of not conflicting with each other.
Referring to fig. 1 to 4, the present invention discloses a method for ordering flow packets in bulk by machine cards of a mobile resale system, specifically, the method includes a method for processing php packets ordered in bulk by machine cards and a method for processing scripts for ordering flow packets ordered in bulk by asynchronous php machine cards, as shown in fig. 2, that is, a schematic diagram for implementing a page of flow packets ordered in bulk by machine cards; in this embodiment, as shown in fig. 3, the method for processing a machine card batch subscription traffic packet php includes the following steps:
s10, obtaining the uploaded number file by using php, and obtaining the content in the number file, wherein the content comprises a number; in step S10, the file format of the file is txt.
S20, judging whether the file content exists, and if so, entering the next step;
in step S20, an error is reported when the file content does not exist, where the error content is: the file content does not exist and is requested to be uploaded again.
S30, judging whether the number in the file content exists or not, and entering the next step when the number exists;
in step S30, an error is reported when the number in the file content does not exist, and the error content is: the number does not have to be uploaded again.
S40, judging whether the traffic packet name exists, and if yes, entering the next step;
in step S40, when the traffic packet name does not exist, an error is reported, where the error content is: the traffic packet name does not exist and requests to be uploaded again.
S50, successfully operating, and entering the processing method of the batch ordering flow package script of the asynchronous php machine card;
referring to fig. 4, the method for processing the batch subscription flow package script of the asynchronous php machine card includes the following steps:
s60, acquiring the content of the number file;
s70, using the content of the foreach circular number file to separately obtain the number in each number file, and circularly processing one number each time;
s80, acquiring the amount of the traffic packet according to the traffic packet name;
s90, obtaining the balance corresponding to the number, judging whether the balance of the number is less than the balance of the flow packet, and entering the next step when the balance of the number is greater than the balance of the flow packet;
in step S90, when the balance of the number is less than the balance of the flow packet, the subscription is failed; the number and the error content are added to the "subscription flow failure table".
100. Deducting balance corresponding to the number according to the amount of the flow packet, and increasing flow for the number according to the amount of the flow packet;
and S110, successfully ordering the flow packet.
In step S110, the number is stored in the "ordered flow packet success table", and a log is printed.
The method for ordering the flow packets in batches by the machine cards of the mobile resale system can realize the function of ordering the flow packets, does not cause high flow cost for customers, can realize the ordering of the flow packets in batches, accelerates the ordering speed of the flow packets, reduces the labor intensity of workers and ensures better customer experience.
While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (8)
1. A method for ordering flow packets in batches by machine cards of a mobile resale system is characterized by comprising a method for processing the flow packets php ordered in batches by the machine cards and a method for processing scripts of the flow packets ordered in batches by asynchronous php machine cards, wherein the method for processing the flow packets php ordered in batches by the machine cards comprises the following steps:
s10, obtaining the uploaded number file by using php, and obtaining the content in the number file, wherein the content comprises a number;
s20, judging whether the file content exists, and if so, entering the next step;
s30, judging whether the number in the file content exists or not, and entering the next step when the number exists;
s40, judging whether the traffic packet name exists, and if yes, entering the next step;
s50, successfully operating, and entering the processing method of the batch ordering flow package script of the asynchronous php machine card;
the processing method for the batch ordering of the flow package scripts by the asynchronous php machine card comprises the following steps:
s60, acquiring the content of the number file;
s70, using the content of the foreach circular number file to separately obtain the number in each number file, and circularly processing one number each time;
s80, acquiring the amount of the flow packet according to the name of the flow packet;
s90, obtaining the balance corresponding to the number, judging whether the balance of the number is less than the balance of the flow packet, and entering the next step when the balance of the number is greater than the balance of the flow packet;
s100, deducting balance corresponding to the number according to the amount of the flow packet, and increasing flow to the number according to the amount of the flow packet;
and S110, successfully ordering the flow packet.
2. The method of claim 1, wherein in step S10, the file format of the file is txt.
3. The method for batch ordering of traffic package by machine card in mobile resale system of claim 1, wherein in step S20, when the file content is not existed, the error is reported as: the file content does not exist and is requested to be uploaded again.
4. The method for mobile reselling system machine card to batch order traffic package according to claim 1, wherein in step S30, when there is no number in the file content, the error is reported, and the content of the error is: the number does not have to be uploaded again.
5. The method of claim 1, wherein in step S40, when the traffic package name does not exist, the error is reported as: the traffic packet name does not exist and requests to be uploaded again.
6. The method for batch ordering of traffic package by machine card of mobile resale system of claim 1, wherein in step S90, when the balance of the number is less than the balance of the traffic package, the ordering fails.
7. The method for the mobile resale system machine card batch ordering of traffic packets according to claim 6, wherein the number and the error content are added to the "ordering traffic failure table".
8. The method for mobile resale system machine card batch ordering of traffic package as claimed in claim 1, wherein in step S110, the number is stored in "order traffic package success table" and the log is printed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210088366.3A CN114567514A (en) | 2022-01-25 | 2022-01-25 | Method for ordering flow packets in batches by machine cards of mobile resale system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210088366.3A CN114567514A (en) | 2022-01-25 | 2022-01-25 | Method for ordering flow packets in batches by machine cards of mobile resale system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114567514A true CN114567514A (en) | 2022-05-31 |
Family
ID=81714432
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210088366.3A Pending CN114567514A (en) | 2022-01-25 | 2022-01-25 | Method for ordering flow packets in batches by machine cards of mobile resale system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114567514A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102215471A (en) * | 2011-06-15 | 2011-10-12 | 中兴通讯股份有限公司 | Value added service subscription and charging method, system and value added service management platform |
CN103731798A (en) * | 2012-10-10 | 2014-04-16 | 中国移动通信集团四川有限公司 | Method and system for ordering telecommunication businesses |
CN106130743A (en) * | 2016-07-01 | 2016-11-16 | 江苏省公用信息有限公司 | A kind of flow processing method |
CN107920336A (en) * | 2016-10-08 | 2018-04-17 | 中兴通讯股份有限公司 | A kind of service order method, system and service server |
-
2022
- 2022-01-25 CN CN202210088366.3A patent/CN114567514A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102215471A (en) * | 2011-06-15 | 2011-10-12 | 中兴通讯股份有限公司 | Value added service subscription and charging method, system and value added service management platform |
CN103731798A (en) * | 2012-10-10 | 2014-04-16 | 中国移动通信集团四川有限公司 | Method and system for ordering telecommunication businesses |
CN106130743A (en) * | 2016-07-01 | 2016-11-16 | 江苏省公用信息有限公司 | A kind of flow processing method |
CN107920336A (en) * | 2016-10-08 | 2018-04-17 | 中兴通讯股份有限公司 | A kind of service order method, system and service server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017161834A1 (en) | E-sim card-based operator selection method, device and mobile terminal | |
US20080081617A1 (en) | Method and Apparatus for Providing Virtual Mobile Phone Number | |
CN1744764A (en) | Call processing method in the personal communication system and equipment | |
US8149724B2 (en) | Selecting a data transfer method | |
EP2395438A1 (en) | Character string processing method and system and matcher | |
US20070135128A1 (en) | Method and system for remote network identification by a mobile subscriber unit | |
US7346362B2 (en) | Method for sending batch download messages | |
US8320899B2 (en) | Installation notification method, installation notification system, and installation notification server | |
JP2005529551A (en) | Method for transmitting MMS message with file type and / or file format conversion | |
US7809809B2 (en) | Client provisioning using application characteristics template with flag parameters | |
CN113824653A (en) | Method and system compatible with multi-protocol service access | |
US8355722B1 (en) | Service initiation based on alternative resources and QoS | |
CN114567514A (en) | Method for ordering flow packets in batches by machine cards of mobile resale system | |
CN100569012C (en) | A kind of method that realizes individualized signature of short message | |
CN114566004B (en) | Method for batch card replacement of mobile resale system machine cards | |
CN113794999B (en) | Short message distribution method, device and storage medium | |
CN115866535A (en) | Method and system for realizing 5G message access by multiple protocols | |
CN1276640C (en) | Payment method for transmitting multimedia short message by utilizing third side as transmitting side | |
CN114567857A (en) | Method for changing batch package price of machine cards of mobile resale system | |
CN114007215A (en) | Method for opening accounts in batches by mobile resale system | |
CN114793325A (en) | Short message charging method and device for VoLTE terminal user and electronic equipment | |
CN110493735B (en) | Short message processing method and device | |
CN107846300B (en) | Method and device for providing service interface | |
CN108600036B (en) | Message notification method and device | |
CN114567636A (en) | Million-level concurrent renewal method based on mobile resale system |
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 |