The invention discloses a method for setting batch out-of-sleeve limitation of machine cards of a mobile reselling system, which comprises the following steps of: S1, uploading a plurality of numbers to a file with a format of txt, and setting a corresponding out-of-sleeve flow threshold value for each number; s2, obtaining the uploaded txt file by using the PHP and obtaining the content in the file; s3, acquiring an out-of-sleeve flow threshold value corresponding to each number in the uploaded txt file by using the PHP; s4, an asynchronous PHP is used for setting a script, and when the asynchronous PHP calls in the script, the obtained number in the txt file and the corresponding external traffic threshold parameter are introduced; s5, independently processing each number by using Foreach circulation, acquiring an original external flow threshold value of the number according to the number User table, comparing the acquired original external flow threshold value with the corresponding external flow threshold value in the acquired txt file, if the acquired original external flow threshold value is consistent with the corresponding external flow threshold value in the txt file, setting error content, and if the acquired original external flow threshold value is consistent with the corresponding external flow threshold value in the txt file, setting error content. And if not, modifying the out-of-sleeve flow threshold value of the number into the corresponding out-of-sleeve flow threshold value in the txt file. Out-sleeve flow threshold values of the cards can be set in batches, and the working efficiency is greatly improved.