CN114566004B - Method for batch card replacement of mobile resale system machine cards - Google Patents
Method for batch card replacement of mobile resale system machine cards Download PDFInfo
- Publication number
- CN114566004B CN114566004B CN202210087628.4A CN202210087628A CN114566004B CN 114566004 B CN114566004 B CN 114566004B CN 202210087628 A CN202210087628 A CN 202210087628A CN 114566004 B CN114566004 B CN 114566004B
- Authority
- CN
- China
- Prior art keywords
- card
- iccid
- mobile
- content
- machine
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 22
- 125000004122 cyclic group Chemical group 0.000 claims abstract description 4
- 238000003672 processing method Methods 0.000 claims description 14
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F9/00—Details other than those peculiar to special kinds or types of apparatus
- G07F9/006—Details of the software used for the vending machines
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F17/00—Coin-freed apparatus for hiring articles; Coin-freed facilities or services
- G07F17/0014—Coin-freed apparatus for hiring articles; Coin-freed facilities or services for vending, access and use of specific services not covered anywhere else in G07F17/00
-
- 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
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application discloses a method for replacing cards in batches by machine cards of a mobile resale system, and relates to the technical field of mobile resale business; the method comprises the following steps of: s10, acquiring an uploaded number file by using php; s20, judging whether numbers in the content exist or not; s30, judging whether a new ICCID card number exists in the content; s40, returning to the successful operation; s50, obtaining the content of the number file; s60, using the content of the foreach cyclic number file to obtain the number in each number file and a new ICCID card number independently; s70, acquiring data of a user table according to the new ICCID card number, and judging whether the data of the user table exist or not; s80, obtaining the balance corresponding to the number; s90, modifying ICCID in the user table according to the number, and replacing the old ICCID with the new ICCID; the beneficial effects of the application are as follows: the function of replacing the machine card is realized, when the ICCID of the user is damaged, a new ICCID card number can be replaced, and the continuous use of the user is not influenced.
Description
Technical Field
The application relates to the technical field of mobile resale business, in particular to a method for replacing machine cards in batches by a mobile resale system.
Background
Mobile communication resale service refers to a mobile communication service purchased from a basic teleservice operator who owns a mobile network, repackaged into its own brands and sold to end users. With the whole business operation of the telecommunication industry, the functional experience of users on mobile phones is more and more rich. The development of new services such as mobile phone color ring, wireless internet surfing, voice fusion and the like is truly and truly realized, and a brand new mobile life is brought to users.
The machine cards used in the mobile resale service all have corresponding numbers and ICCIDs, and when the ICCIDs of users are damaged, the machine cards cannot be used normally, and new ICCID card numbers cannot be replaced. The speed of replacing the single card is low, when a plurality of cards need to be operated together, the front page needs to be operated for a plurality of times, 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 application provides a method for replacing machine cards in batches by using a mobile resale system.
The technical scheme adopted for solving the technical problems is as follows: the improvement of the method for replacing the cards in batches by the machine cards of the mobile resale system is that the method comprises a machine card batch replacement card php processing method and an asynchronous php machine card batch replacement card script processing method, wherein the machine card batch replacement card php processing method comprises the following steps:
s10, acquiring an uploaded number file by using php, and acquiring contents in the number file, wherein the contents comprise numbers and new ICCID card numbers;
s20, judging whether the number in the content exists, and entering the next step when the number exists;
s30, judging whether a new ICCID card number exists in the content, and entering the next step when the ICCID card number exists;
s40, returning to successful operation, and entering into an asynchronous php machine card batch card replacement script processing method;
the asynchronous php machine card batch card replacement script processing method comprises the following steps:
s50, obtaining the content of the number file;
s60, using the content of the foreach cyclic number file to obtain the number in each number file and a new ICCID card number independently;
s70, acquiring data of a user table according to the new ICCID card number, judging whether the data of the user table exist or not, and if not, entering the next step;
s80, obtaining the balance corresponding to the number, judging whether the balance is greater than a set value, and entering the next step when the balance is greater than the set value;
s90, modifying the ICCID in the user table according to the number, and replacing the old ICCID with the new ICCID.
Further, in step S10, the file format of the file is txt.
Further, in step S20, when the number does not exist, the error is reported, and the error reporting content is: the number does not exist and is requested to be uploaded again.
Further, in step S20, when the ICCID card number does not exist, an error is reported, and the error reporting content is: the new IDDIC card no longer exists for re-upload.
Further, in step S70, when the data in the user table exists, an error content is set, where the error content is: a new ICCID card number already exists and the operation fails.
Further, the number and the error content are stored in a 'card replacement failure table', and the steps are ended.
Further, in step S80, when the balance corresponding to the number is smaller than the set value, an error content is set, where the error content is: the operation fails and the balance is insufficient.
Further, the number and the error content are stored in a 'card replacement failure table', and the steps are ended.
Further, in step S80, the balance is set to 5 yuan.
Further, step S90 further includes the steps of:
s100, storing the number corresponding to the new ICCID into a replacement card success table.
The beneficial effects of the application are as follows: the function of replacing the machine card is realized, when the ICCID of the user is damaged, a new ICCID card number can be replaced, and the continuous use of the user is not influenced; and the card replacement in batches can be realized, and the card replacement speed is accelerated.
Drawings
FIG. 1 is a flow chart of a method for batch card replacement of machine cards in a mobile vending system according to the present application.
FIG. 2 is a schematic diagram of a front page implementation of a machine card batch replacement card according to the present application.
FIG. 3 is a schematic diagram of a machine card batch replacement card php implementation in accordance with the present application.
FIG. 4 is a schematic diagram of an implementation of the batch replacement card script for an asynchronous php machine card in the present application.
Detailed Description
The application will be further described with reference to the drawings and examples.
The conception, specific structure, and technical effects produced by the present application will be clearly and completely described below with reference to the embodiments and the drawings to fully understand the objects, features, and effects of the present application. It is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments, and that other embodiments obtained by those skilled in the art without inventive effort are within the scope of the present application based on the embodiments of the present application. In addition, all the coupling/connection relationships referred to in the patent are not direct connection of the single-finger members, but rather, it means that a better coupling structure can be formed by adding or subtracting coupling aids depending on the specific implementation. The technical features in the application can be interactively combined on the premise of no contradiction and conflict.
Referring to fig. 1, the application discloses a method for batch card replacement of machine cards of a mobile resale system, which comprises a machine card batch card replacement php processing method and an asynchronous php machine card batch card replacement script processing method, wherein the machine card batch card replacement php processing method comprises the following steps of:
s10, acquiring an uploaded number file by using php, and acquiring contents in the number file, wherein the contents comprise numbers and new ICCID card numbers; in step S10, the file format of the file is txt.
S20, judging whether the number in the content exists, and entering the next step when the number exists;
in step S20, when the number does not exist, the error is reported, and the error reporting content is: the number does not exist and is requested to be uploaded again. And when the ICCID card number does not exist, reporting errors, wherein the error reporting content is as follows: the new IDDIC card no longer exists for re-upload.
S30, judging whether a new ICCID card number exists in the content, and entering the next step when the ICCID card number exists;
s40, returning to successful operation, and entering into an asynchronous php machine card batch card replacement script processing method;
referring to fig. 4, the method for processing the asynchronous php machine card batch card replacement script comprises the following steps:
s50, obtaining the content of the number file;
s60, using the content of the foreach cyclic number file to obtain the number in each number file and a new ICCID card number independently;
s70, acquiring data of a user table according to the new ICCID card number, judging whether the data of the user table exist or not, and if not, entering the next step;
in step S70, when the data of the user table exists, an error content is set, where the error content is: the new ICCID card number already exists and the operation fails; and storing the number and the error content into a 'card replacement failure table', and ending the steps.
S80, obtaining the balance corresponding to the number, judging whether the balance is greater than a set value, and entering the next step when the balance is greater than the set value; in this embodiment, the balance is set to 5 yuan.
In step S80, when the balance corresponding to the number is smaller than the set value, setting error content, where the error content is: failure of operation, insufficient balance; and storing the number and the error content into a 'card replacement failure table', and ending the steps.
S90, modifying the ICCID in the user table according to the number, and replacing the old ICCID with the new ICCID.
The step S90 further includes the steps of:
s100, storing the number corresponding to the new ICCID into a replacement card success table.
In summary, the application provides a method for replacing the machine cards in batches of the mobile resale system, which realizes the function of replacing the machine cards, and when the ICCID of a user is damaged, a new ICCID card number can be replaced without affecting the continuous use of the user; and the card replacement in batches can be realized, and the card replacement speed is accelerated.
While the preferred embodiment of the present application has been described in detail, the present application is not limited to the embodiments, and those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present application, and the equivalent modifications or substitutions are included in the scope of the present application as defined in the appended claims.
Claims (10)
1. The method for batch card replacement of the machine cards of the mobile resale system is characterized by comprising a machine card batch card replacement php processing method and an asynchronous php machine card batch card replacement script processing method, wherein the machine card batch card replacement php processing method comprises the following steps:
s10, acquiring an uploaded number file by using php, and acquiring contents in the number file, wherein the contents comprise numbers and new ICCID card numbers;
s20, judging whether the number in the content exists, and entering the next step when the number exists;
s30, judging whether a new ICCID card number exists in the content, and entering the next step when the ICCID card number exists;
s40, returning to successful operation, and entering into an asynchronous php machine card batch card replacement script processing method;
the asynchronous php machine card batch card replacement script processing method comprises the following steps:
s50, obtaining the content of the number file;
s60, using the content of the foreach cyclic number file to obtain the number in each number file and a new ICCID card number independently;
s70, acquiring data of a user table according to the new ICCID card number, judging whether the data of the user table exist or not, and if not, entering the next step;
s80, obtaining the balance corresponding to the number, judging whether the balance is greater than a set value, and entering the next step when the balance is greater than the set value;
s90, modifying the ICCID in the user table according to the number, and replacing the old ICCID with the new ICCID.
2. The method for mass-replacing machine cards of a mobile resale system according to claim 1 wherein in step S10, the file format of the file is txt.
3. The method for batch replacement of machine cards in a mobile resale system according to claim 1, wherein in step S20, when the number does not exist, the error is reported, and the error report content is: the number does not exist and is requested to be uploaded again.
4. The method for batch replacement of machine cards in a mobile reselling system according to claim 1, wherein in step S20, when the ICCID card number does not exist, an error is reported, and the error reporting content is: the new IDDIC card no longer exists for re-upload.
5. The method for mass replacement of machine cards in a mobile resale system according to claim 1, wherein in step S70, when the data in the user table exists, an error content is set, and the error content is: a new ICCID card number already exists and the operation fails.
6. The method for mass card replenishment of a mobile resale system machine according to claim 5 wherein the number and the error content are stored in a "card replacement failure table" and the step is terminated.
7. The method for mass card replacement of mobile reselling system machine cards according to claim 1, wherein in step S80, when the balance corresponding to the number is smaller than the set value, an error content is set, and the error content is: the operation fails and the balance is insufficient.
8. The method for mass card replenishment of a mobile resale system machine according to claim 7 wherein the number and the error content are stored in a "card replacement failure table" and the step is terminated.
9. The method for mass card replenishment of a mobile resale system machine according to claim 1 wherein in step S80, the balance is set to 5 yuan.
10. The method for mass card replenishment of a mobile resale system machine card of claim 1, further comprising the step of, after step S90:
s100, storing the number corresponding to the new ICCID into a replacement card success table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210087628.4A CN114566004B (en) | 2022-01-25 | 2022-01-25 | Method for batch card replacement of mobile resale system machine cards |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210087628.4A CN114566004B (en) | 2022-01-25 | 2022-01-25 | Method for batch card replacement of mobile resale system machine cards |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114566004A CN114566004A (en) | 2022-05-31 |
CN114566004B true CN114566004B (en) | 2023-08-11 |
Family
ID=81714666
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210087628.4A Active CN114566004B (en) | 2022-01-25 | 2022-01-25 | Method for batch card replacement of mobile resale system machine cards |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114566004B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1456998A (en) * | 2002-05-10 | 2003-11-19 | 斯伦贝谢神码(北京)信息技术有限公司 | Intelligent card replacing method and system |
CN105530107A (en) * | 2015-12-03 | 2016-04-27 | 中国联合网络通信集团有限公司 | Batched account opening method based on eUICCs and platform |
CN110351346A (en) * | 2019-06-21 | 2019-10-18 | 华为技术有限公司 | A kind of eSIM changes chucking method and relevant device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE10039861C2 (en) * | 2000-08-10 | 2002-11-07 | T Mobile Deutschland Gmbh | Process for the simplified exchange of a SIM card for participants in a digital mobile communication network |
-
2022
- 2022-01-25 CN CN202210087628.4A patent/CN114566004B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1456998A (en) * | 2002-05-10 | 2003-11-19 | 斯伦贝谢神码(北京)信息技术有限公司 | Intelligent card replacing method and system |
CN105530107A (en) * | 2015-12-03 | 2016-04-27 | 中国联合网络通信集团有限公司 | Batched account opening method based on eUICCs and platform |
CN110351346A (en) * | 2019-06-21 | 2019-10-18 | 华为技术有限公司 | A kind of eSIM changes chucking method and relevant device |
Also Published As
Publication number | Publication date |
---|---|
CN114566004A (en) | 2022-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Bodic | Mobile messaging technologies and services: SMS, EMS and MMS | |
US8170536B2 (en) | Provisioning content formatting in a mobile device management system | |
CN100454949C (en) | Method for obtaining mobile terminal professional ability information | |
CN108616869B (en) | Multi-card multi-standby system, method, device, communication device and computer readable storage medium | |
CN1157077C (en) | Method for storing and informing properties of a wireless communication device | |
CN1736116A (en) | System and method for providing multimedia messaging service (MMS) ringing images on mobile calls | |
WO2005053348A2 (en) | Method and network for detection of device information of mobile stations | |
EP3635983B1 (en) | Esim profile metadata provisioning | |
CN100369414C (en) | Method for changing push business parameters data according to user and terminal relation | |
CN111193688B (en) | Method, device, equipment and medium for realizing video color ring | |
CN101917688A (en) | Mobile phone, system and method supporting transmission of hang-up short message from called party to calling party | |
CN109660979A (en) | Internet of Things opens chucking method and device in the air, calculates equipment and storage medium | |
US8185090B2 (en) | Method and system for provisioning content in a mobile device management system | |
CN114566004B (en) | Method for batch card replacement of mobile resale system machine cards | |
CN105812178B (en) | A kind of terminal staging method and terminal | |
WO2005084053A1 (en) | Method of facilitating downloading, storing and forwarding of ring tones and other services in a mobile terminal. | |
CN100569012C (en) | A kind of method that realizes individualized signature of short message | |
CN112738823B (en) | Interface data interaction method, distributed unit and central unit | |
CN101163277A (en) | Information processing method and subscriber terminal | |
CN114793325A (en) | Short message charging method and device for VoLTE terminal user and electronic equipment | |
CN100358293C (en) | Method for changing push business parameters data according to user signed data | |
CN101437207B (en) | System and method for implementing calling name card business | |
CN114567514A (en) | Method for ordering flow packets in batches by machine cards of mobile resale system | |
CN114567857A (en) | Method for changing batch package price of machine cards of mobile resale system | |
CN106255093A (en) | The communications records management method of a kind of dual-SIM-card dual-standby mobile terminal and mobile terminal |
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 | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A method for batch replacement of machine cards in mobile resale systems Granted publication date: 20230811 Pledgee: Shenzhen small and medium sized small loan Co.,Ltd. Pledgor: YINSHENG TELECOM Co.,Ltd. Registration number: Y2024980003291 |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right |