顺丰单号生成规则

上传人:kms****20 文档编号:40625058 上传时间:2018-05-26 格式:DOC 页数:10 大小:35.50KB
返回 下载 相关 举报
顺丰单号生成规则_第1页
第1页 / 共10页
顺丰单号生成规则_第2页
第2页 / 共10页
顺丰单号生成规则_第3页
第3页 / 共10页
顺丰单号生成规则_第4页
第4页 / 共10页
顺丰单号生成规则_第5页
第5页 / 共10页
点击查看更多>>
资源描述

《顺丰单号生成规则》由会员分享,可在线阅读,更多相关《顺丰单号生成规则(10页珍藏版)》请在金锄头文库上搜索。

1、顺丰单号生成规则顺丰单号生成规则顺丰运单排列规则:由于淘宝发帖有字数限制,顺丰排列规则过场,我将在一楼留言板发布。前 11 位数字是按照顺序排列,最后一位数字是根据一定原理推导出来的:1、当第 11 位数不等于 9 时,第二张运单的最后一位数字=上一张运单最后一位数字+9,取结果的个位数2、当第 11 位数字=9 时,看第 10 位数字的规律当第 10 位数字=0,1,2,4,5,7,8 时,第二张运单的最后一位数字=上一张运单最后一位数字+6,取结果的个位数当第 10 位数字=3,6 时,第二张运单的最后一位数字=上一张运单最后一位数字+5,取结果的个位数3、当第 11 位数字、第 10 位

2、数字都等于 9 时,看第 9 位数字的规律当第 9 位数字=0,2,4,6,8 时,第二张运单最后一位数字=上一张运单最后一位数字+3,取结果的个位数当第 9 位数字=1,3,5,7 时,第二张运单最后一位数字=上一张运单最后一位数字+2,取结果的个位数4、当第 11 位数字、第 10 位数字、第 9 位数字都等于 9 时,看第 8位数字的规律当第 8 位数字=0,3,6 时,第二张运单的最后一位数字=上一张运单最后一位数字+0,取结果的个位数当第 8 位数字=1,2,4,5,7,8 时,第二张运单的最后一位数字=上一张运单最后一位数字+9,取结果的个位数5、当第 11 位数字、第 10 位数

3、字、第 9 位数字、第 8 位数字都等于9 时,看第 7 位数字的规律当第 7 位数字=0 时,第二张运单的最后一位数字=上一张运单最后一位数字+7,取结果的个位数当第 7 位数字=1,2,3,4,5,6,7,8 时,第二张运单的最后一位数字=上一张运单最后一位数字+6,取结果的个位数6、当第 11 位数字、第 10 位数字、第 9 位数字、第 8 位数字、第 7位数字都等于 9 时,看第 6 位数字的规律当第 6 位数字=0,1,2,3,4,5,6,7,8 时,第二张运单的最后一位数字=上一张运单最后一位数字+3,取结果的个位数7、当第 11 位数字、第 10 位数字、第 9 位数字、第 8

4、 位数字、第 7位数字、第 6 位数字都等于 9 时,根据第 5 位数字判断当第 5 位数字=0,1,2,4,5,7,8 时,第二张运单的最后一位数字=上一张运单最后一位数字+9,取结果的个位数当第 5 位数字=3,6 时,第二张运单的最后一位数字=上一张运单最后一位数字+8,取结果的个位数8、当第 11 位数字、第 10 位数字、第 9 位数字、第 8 位数字、第 7位数字、第 6 位数字、第 5 位数字都等于 9 时,根据第 4 位数字判断当第 4 位数字=0,2,4,6,8 时, ,第二张运单的最后一位数字=上一张运单最后一位数字+5,取结果的个位数当第 4 位数字=1,3,5,7 时,

5、第二张运单的最后一位数字=上一张运单最后一位数字+4,取结果的个位数=js:var currentNo = $(“#txt_Number“).val();var num1 = currentNo.substr(0, 1);var num12 = currentNo.substr(11, 1);var sf_dh;if (num1 = 0) sf_dh = currentNo.substr(1, 10);else sf_dh = currentNo.substr(0, 11);$(“.label“).each(function () if (currentNo.length = 12) if (

6、num1 = 0) currentNo = “0“ + sf_dh + num12;else currentNo = sf_dh + String(num12);num12 = setNum12(String(currentNo);sf_dh+;$(this).val($(“#txt_E1“).val() + currentNo + $(“#txt_E2“).val(););function setNum12(currentNo) var newBehindFirstBit;var frontElevenBits = currentNo.substring(0, 11);var behindF

7、irstBit = currentNo.substr(11, 1);var behindSecondBit = currentNo.substr(10, 1);var behindThirdBit = currentNo.substr(9, 1);if (behindSecondBit = “9“) switch (behindThirdBit) /*倒数第三位 0,1,2,4,5,7,8 跳转 4 */case “0“:case “1“:case “2“:case “4“:case “5“:case “7“:case “8“:behindFirstBit = behindFirstBit *

8、 1 + 6;behindFirstBit = behindFirstBit % 10;break;/*倒数第三位 3,6 跳转 5 */case “3“:case “6“:behindFirstBit = behindFirstBit * 1 + 5;behindFirstBit = behindFirstBit % 10;break;/*倒数第三位 9 跳转 7 */case “9“:switch (currentNo.substring(8, 9) case “0“:case “2“:case “4“:case “6“:case “8“:behindFirstBit = behindFi

9、rstBit * 1 + 3;behindFirstBit = behindFirstBit % 10;break;case “1“:case “3“:case “5“:case “7“:behindFirstBit = behindFirstBit * 1 + 2;behindFirstBit = behindFirstBit % 10;break;case “9“:switch (currentNo.substring(7, 8) case “0“:case “3“:case “6“:behindFirstBit = behindFirstBit * 1 + 0;behindFirstBi

10、t = behindFirstBit % 10;break;case “9“:switch (currentNo.substring(6, 7) case “0“:behindFirstBit = behindFirstBit * 1 + 7;behindFirstBit = behindFirstBit % 10;break;case “1“:case “2“:case “3“:case “4“:case “5“:case “6“:case “7“:case “8“:behindFirstBit = behindFirstBit * 1 + 6;behindFirstBit = behind

11、FirstBit % 10;break;case “9“:switch (currentNo.substring(5, 6) case “0“:case “1“:case “2“:case “3“:case “4“:case “5“:case “6“:case “7“:case “8“:behindFirstBit = behindFirstBit * 1 + 3;behindFirstBit = behindFirstBit % 10;break;case “9“:switch (currentNo.substring(4, 5) case “0“:case “1“:case “2“:cas

12、e “4“:case “5“:case “7“:case “8“:behindFirstBit = behindFirstBit * 1 + 9;behindFirstBit = behindFirstBit % 10;break;case “3“:case “6“:behindFirstBit = behindFirstBit * 1 + 8;behindFirstBit = behindFirstBit % 10;break;case “9“:switch (currentNo.substring(3, 4) case “0“:case “2“:case “4“:case “6“:case

13、 “8“:behindFirstBit = behindFirstBit * 1 + 5;behindFirstBit = behindFirstBit % 10;break;case “1“:case “3“:case “5“:case “7“:behindFirstBit = behindFirstBit * 1 + 4;behindFirstBit = behindFirstBit % 10;break;break;default:behindFirstBit = behindFirstBit * 1 + 9;behindFirstBit = behindFirstBit % 10;break;break;else behindFirstBit = behindFirstBit * 1 + 9;behindFirstBit = behindFirstBit % 10;return behindFirstBit;

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 科普知识

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号