CN114567857A - Method for changing batch package price of machine cards of mobile resale system - Google Patents

Method for changing batch package price of machine cards of mobile resale system Download PDF

Info

Publication number
CN114567857A
CN114567857A CN202210088350.2A CN202210088350A CN114567857A CN 114567857 A CN114567857 A CN 114567857A CN 202210088350 A CN202210088350 A CN 202210088350A CN 114567857 A CN114567857 A CN 114567857A
Authority
CN
China
Prior art keywords
package
price
content
error
php
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
Application number
CN202210088350.2A
Other languages
Chinese (zh)
Inventor
王小普
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yinsheng Telecom Co ltd
Original Assignee
Yinsheng Telecom Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Yinsheng Telecom Co ltd filed Critical Yinsheng Telecom Co ltd
Priority to CN202210088350.2A priority Critical patent/CN114567857A/en
Publication of CN114567857A publication Critical patent/CN114567857A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9017Indexing; Data structures therefor; Storage structures using directory or table look-up

Abstract

The invention discloses a method for changing the price of a batch package of machine cards of a mobile resale system, relating to the technical field of mobile resale service; the method comprises the following steps: s10, obtaining an uploading number file by using php; s20, judging whether the number in the content exists or not; s30, obtaining the uploaded package price by using php; s40, returning to the operation success; s50, acquiring the content of the number file; s60, acquiring the numbers in the number files, and individually acquiring the numbers in each number file by using the contents of the foreach loop number file; s70, acquiring the package price of the user table according to the number; s80, acquiring a package price change success record table at the current time according to the number, and judging whether the number has a record of changing the package price in the current month; s90, modifying the package price in the user table according to the number; the invention has the beneficial effects that: batch change is realized, package change speed is accelerated, working efficiency is improved, and labor intensity is reduced.

Description

Method for changing batch package price of machine cards of mobile resale system
Technical Field
The invention relates to the technical field of mobile resale service, in particular to a method for changing the price of a batch package of 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.
After the mobile resale service is cooperated with the client, when the client needs to change the package, the price change speed of the single card package is slow. When the magnitude of the number of users needing to change the package reaches more than ten thousand, the front end needs to operate ten thousand times, and the operation is very troublesome, so that the method is difficult to realize.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides a method for changing the price of a batch package of a machine card of a mobile resale system.
The technical scheme adopted by the invention for solving the technical problems is as follows: the improvement of the method is that the method comprises a method for processing the price change php of the machine card batch package and a method for processing the script of the asynchronous php machine card batch package price change, wherein the method for processing the price change php of the machine card batch package comprises the following steps:
s10, obtaining the uploaded number file by using php, and obtaining the content in the number file;
s20, judging whether the number in the content exists or not;
s30, obtaining the uploaded package price by using php;
s40, returning that the operation is successful, and entering an asynchronous php machine card batch package price change script processing method;
the processing method of the price change script of the batch package of the asynchronous php machine card comprises the following steps:
s50, acquiring the content of the number file;
s60, acquiring the numbers in the number files, and individually acquiring the numbers in each number file by using the contents of the foreach loop number file;
s70, acquiring package prices of the user table according to the numbers, judging whether the package prices of the user table are consistent with the package prices acquired in the step S30 or not, and if not, entering the step S80;
s80, acquiring a package price change success record table at the current time according to the number, judging whether the number has a record for changing the package price in the month, and entering the step S90 when the record for changing the package price does not exist in the month;
and S90, modifying the package price in the user table according to the number, and replacing the old package price with the new package price.
Further, in step S10, the file format of the number file is txt.
Further, in step S10, an error is reported when the content in the number file does not exist, where the error content is: the file content does not exist and is requested to be uploaded again.
Further, in step S20, an error is reported when no number exists, and the error content is: the number does not have to be uploaded again.
Further, in step S30, when there is no package price, an error is reported, and the content of the error is: there is no request to upload package prices again.
Further, in step S70, when the package price of the user table is consistent with the package price acquired in step S30, an error content is set, where the error content is: the price of the new package is consistent with that of the old package and cannot be changed.
Further, the number and the corresponding error content are stored, and the loop is ended.
Further, in step S80, when there is a record of changing the package price in the month, an error content is set, the error content being: the package price change exists in the current month and cannot be changed.
Further, the number and the corresponding error content are stored, and the loop is ended.
Further, step S90 is followed by the following steps:
s100, storing the numbers into a package price list success list, and printing a log to ensure that the package price list is successful.
The invention has the beneficial effects that: the invention provides a method for changing the price of a machine card batch package of a mobile resale system, which realizes the price change of the machine card package, can reasonably improve or reduce the price of the package, can realize batch change, accelerates the speed of package change, improves the working efficiency and reduces the labor intensity.
Drawings
Fig. 1 is a flow chart of a method for changing the price of a batch package of a machine card of a mobile resale system according to the present invention.
FIG. 2 is a schematic view of the operation flow of the machine card batch package price change page in the present invention.
FIG. 3 is a flow chart of a php processing method for changing the price of a machine card batch package according to the present invention.
FIG. 4 is a flow diagram illustrating a method for processing a batch package price change script of 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, the present invention discloses a method for changing price of a machine card batch package in a mobile resale system, specifically, the method includes a method for processing php of the price change of the machine card batch package and a method for processing a script of the price change of an asynchronous php machine card batch package, wherein, with reference to fig. 2 and 3, the method for processing the price change php of the machine card batch package includes the following steps:
s10, obtaining the uploaded number file by using php, and obtaining the content in the number file;
in this embodiment, in step S10, the file format of the number file is txt; when the content in the number file does not exist, the error is reported, and the error reporting content is as follows: the file content does not exist and is requested to be uploaded again.
S20, judging whether the number in the content exists or not; when the number does not exist, the error is reported, and the error content is as follows: the number does not exist and is requested to be uploaded again;
s30, obtaining the uploaded package price by using php; in step S30, when the package price does not exist, the error is reported, and the error content is: the price of the package does not need to be uploaded again;
and S40, returning that the operation is successful, and entering an asynchronous php machine card batch package price change script processing method.
Further, in the foregoing embodiment, as shown in fig. 4, the method for processing the batch package price change script of the asynchronous php machine card includes the following steps:
s50, acquiring the content of the number file;
s60, acquiring the numbers in the number files, and individually acquiring the numbers in each number file by using the contents of the foreach loop number file;
s70, acquiring the package price of the user table according to the number, judging whether the package price of the user table is consistent with the package price acquired in the step S30, and if not, entering the step S80;
in step S70, when the package price of the user table is consistent with the package price acquired in step S30, setting an error content, where the error content is: the price of the new package is consistent with that of the old package and can not be changed. And storing the numbers and the corresponding error contents into a package price change failure table, and ending the cycle.
S80, acquiring a package price change success record table at the current time according to the number, judging whether the number has a record for changing the package price in the month, and entering the step S90 when the record for changing the package price does not exist in the month;
in step S80, when there is a record of changing the package price in the month, error contents are set, the error contents being: the price of the package is changed in the current month, and the package cannot be changed; in addition, the number and the corresponding error content are stored, and the loop is ended.
And S90, modifying the package price in the user table according to the number, and replacing the old package price with the new package price.
S100, storing the numbers into a package price list success list, and printing a log to ensure that the package price list is successful.
Based on the method, the price change of the machine card package is realized, the price of the package can be reasonably improved or reduced, the batch change can be realized, the speed of package change is accelerated, the working efficiency is improved, and the labor intensity of workers is reduced.
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 (10)

1. A method for changing price of a machine card batch package of a mobile resale system is characterized by comprising a method for processing php of the price change of the machine card batch package and a method for processing a script of the price change of the asynchronous php machine card batch package, wherein the method for processing the price change php of the machine card batch package comprises the following steps:
s10, obtaining the uploaded number file by using php, and obtaining the content in the number file;
s20, judging whether the number in the content exists or not;
s30, obtaining the uploaded package price by using php;
s40, returning that the operation is successful, and entering an asynchronous php machine card batch package price change script processing method;
the processing method of the price change script of the batch package of the asynchronous php machine card comprises the following steps:
s50, acquiring the content of the number file;
s60, acquiring the numbers in the number files, and individually acquiring the numbers in each number file by using the contents of the foreach loop number file;
s70, acquiring package prices of the user table according to the numbers, judging whether the package prices of the user table are consistent with the package prices acquired in the step S30 or not, and if not, entering the step S80;
s80, acquiring a package price change success record table at the current time according to the number, judging whether the number has a record for changing the package price in the month, and entering the step S90 when the record for changing the package price does not exist in the month;
and S90, modifying the package price in the user table according to the number, and replacing the old package price with the new package price.
2. The method as claimed in claim 1, wherein the file format of the number file is txt in step S10.
3. The method of claim 1, wherein in step S10, when the content in the number file does not exist, the error is reported, and the content of the error is: the file content does not exist and is requested to be uploaded again.
4. The method of claim 3, wherein in step S20, when no number exists, the error is reported, and the content of the error is: the number does not have to be uploaded again.
5. The method for changing the price of a package in batches by machine cards in a mobile resale system according to claim 1, wherein in step S30, when there is no package price, an error is reported, and the content of the error is: package prices do not have to be uploaded again.
6. The method of claim 1, wherein in step S70, when the package price of the user table is consistent with the package price obtained in step S30, an error content is set, and the error content is: the price of the new package is consistent with that of the old package and can not be changed.
7. The method of claim 6, wherein the number and corresponding error content are stored and the cycle is ended.
8. The method of claim 1, wherein in step S80, when there is a record of package price change in month, an error content is set, and the error content is: the price of the package is changed in the current month, and the price cannot be changed.
9. The method as claimed in claim 8, wherein the number and corresponding error content are stored, and the cycle is ended.
10. The method for changing the price of a mobile resale system machine card batch package according to claim 1, wherein step S90 is followed by the following steps:
s100, storing the numbers into a package price list success list, and printing a log to ensure that the package price list is successful.
CN202210088350.2A 2022-01-25 2022-01-25 Method for changing batch package price of machine cards of mobile resale system Pending CN114567857A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210088350.2A CN114567857A (en) 2022-01-25 2022-01-25 Method for changing batch package price of machine cards of mobile resale system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210088350.2A CN114567857A (en) 2022-01-25 2022-01-25 Method for changing batch package price of machine cards of mobile resale system

Publications (1)

Publication Number Publication Date
CN114567857A true CN114567857A (en) 2022-05-31

Family

ID=81713019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210088350.2A Pending CN114567857A (en) 2022-01-25 2022-01-25 Method for changing batch package price of machine cards of mobile resale system

Country Status (1)

Country Link
CN (1) CN114567857A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232637A (en) * 2007-12-28 2008-07-30 中国移动通信集团四川有限公司 Method for automatically deploying service based on user action
CN101765112A (en) * 2009-12-22 2010-06-30 中国联合网络通信集团有限公司 Value added service mutually exclusive authentication method and device
CN103581867A (en) * 2013-11-19 2014-02-12 华为技术有限公司 Service package switching method, device and system
CN103731798A (en) * 2012-10-10 2014-04-16 中国移动通信集团四川有限公司 Method and system for ordering telecommunication businesses
WO2020063790A1 (en) * 2018-09-27 2020-04-02 惠州Tcl移动通信有限公司 Method for selecting virtual sim card resource, storage medium, and mobile terminal
CN111476016A (en) * 2020-04-15 2020-07-31 北京思特奇信息技术股份有限公司 Template configuration method for package tariff in telecommunication industry
CN112634021A (en) * 2020-12-24 2021-04-09 中国建设银行股份有限公司 Client data processing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232637A (en) * 2007-12-28 2008-07-30 中国移动通信集团四川有限公司 Method for automatically deploying service based on user action
CN101765112A (en) * 2009-12-22 2010-06-30 中国联合网络通信集团有限公司 Value added service mutually exclusive authentication method and device
CN103731798A (en) * 2012-10-10 2014-04-16 中国移动通信集团四川有限公司 Method and system for ordering telecommunication businesses
CN103581867A (en) * 2013-11-19 2014-02-12 华为技术有限公司 Service package switching method, device and system
WO2020063790A1 (en) * 2018-09-27 2020-04-02 惠州Tcl移动通信有限公司 Method for selecting virtual sim card resource, storage medium, and mobile terminal
CN111476016A (en) * 2020-04-15 2020-07-31 北京思特奇信息技术股份有限公司 Template configuration method for package tariff in telecommunication industry
CN112634021A (en) * 2020-12-24 2021-04-09 中国建设银行股份有限公司 Client data processing method and device

Similar Documents

Publication Publication Date Title
US8170536B2 (en) Provisioning content formatting in a mobile device management system
CN109814856B (en) Data entry method, device, terminal and computer readable storage medium
CN1736116A (en) System and method for providing multimedia messaging service (MMS) ringing images on mobile calls
EP2357860A1 (en) Device management server, client and method for locating target operation object
CN108415708B (en) Application program installation package size processing method, device, equipment and storage medium
EP1555791A1 (en) Client provisioning with flag parameters
CN111142905A (en) OTA (over-the-air) upgrading method, OTA server and OTA upgrading system
CN101448228B (en) Method for starting satellite tool kit (STK) service of subscriber identification module
US8185090B2 (en) Method and system for provisioning content in a mobile device management system
CN114567857A (en) Method for changing batch package price of machine cards of mobile resale system
CN100569012C (en) A kind of method that realizes individualized signature of short message
US8489838B2 (en) Method and terminal device for erasing data of terminal
CN114566004B (en) Method for batch card replacement of mobile resale system machine cards
CN108924840B (en) Blacklist management method and device and terminal
CN108616870B (en) Method and device for identifying terminal customized preferentially
CN114007215A (en) Method for opening accounts in batches by mobile resale system
CN114567514A (en) Method for ordering flow packets in batches by machine cards of mobile resale system
CN1276640C (en) Payment method for transmitting multimedia short message by utilizing third side as transmitting side
CN115866535A (en) Method and system for realizing 5G message access by multiple protocols
CN113190565B (en) Data updating method and device, storage medium and electronic device
CN113794999B (en) Short message distribution method, device and storage medium
CN112738823B (en) Interface data interaction method, distributed unit and central unit
JP2001117842A (en) Method and system for message communication by portable telephone
US20060161839A1 (en) Method for obtaining communication settings using an application descriptor
CN106534279A (en) Dynamic native interface invoking method and 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