]> Zhao Yanbai Git Server - acecode.git/commitdiff
...
authoracevest <zhaoyanbai@126.com>
Sat, 4 Mar 2017 06:25:02 +0000 (14:25 +0800)
committeracevest <zhaoyanbai@126.com>
Sat, 4 Mar 2017 06:25:02 +0000 (14:25 +0800)
learn/FoodTracker/FoodTracker.xcodeproj/project.pbxproj
learn/FoodTracker/FoodTracker.xcodeproj/project.xcworkspace/xcuserdata/ace.xcuserdatad/UserInterfaceState.xcuserstate
tools/AceBox/AceBox.xcodeproj/project.xcworkspace/xcuserdata/Ace.xcuserdatad/UserInterfaceState.xcuserstate
tools/comm/identity.py [new file with mode: 0755]

index f6a26d153da66eba2dc54bdd78875688c0a46be2..950c7f01a5dc18b08c25a9998111b6661385b354 100644 (file)
                        isa = XCBuildConfiguration;
                        buildSettings = {
                                ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+                               "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
                                DEVELOPMENT_TEAM = VR7L9Q5L2E;
                                INFOPLIST_FILE = FoodTracker/Info.plist;
                                LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
                        isa = XCBuildConfiguration;
                        buildSettings = {
                                ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+                               "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
                                DEVELOPMENT_TEAM = VR7L9Q5L2E;
                                INFOPLIST_FILE = FoodTracker/Info.plist;
                                LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
index e455e34281c778338719ed70092c19aaf816f60d..d7e31789285c67f312950d371bbdfa6a7fffadcc 100644 (file)
Binary files a/learn/FoodTracker/FoodTracker.xcodeproj/project.xcworkspace/xcuserdata/ace.xcuserdatad/UserInterfaceState.xcuserstate and b/learn/FoodTracker/FoodTracker.xcodeproj/project.xcworkspace/xcuserdata/ace.xcuserdatad/UserInterfaceState.xcuserstate differ
index d764726221036a4bb0f24c0ddce46700cff8f091..e0be8c76dbe4db0e7a147cfd23605df39d1a4971 100644 (file)
Binary files a/tools/AceBox/AceBox.xcodeproj/project.xcworkspace/xcuserdata/Ace.xcuserdatad/UserInterfaceState.xcuserstate and b/tools/AceBox/AceBox.xcodeproj/project.xcworkspace/xcuserdata/Ace.xcuserdatad/UserInterfaceState.xcuserstate differ
diff --git a/tools/comm/identity.py b/tools/comm/identity.py
new file mode 100755 (executable)
index 0000000..98269ff
--- /dev/null
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+# ------------------------------------------------------------------------
+#   File Name: identity.py
+#      Author: Zhao Yanbai
+#              2016-12-06 17:03:17 ζ˜ŸζœŸδΊŒ CST
+# Description: none
+# ------------------------------------------------------------------------
+
+def VerifyId(ids) :
+    weight = [7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2]
+    validate = ['1','0','X','9','8','7','6','5','4','3','2']
+    if len(ids) != 18 :
+        return False;
+
+    Sum = 0
+    for i in range(17) :
+        Sum += weight[i] * int(ids[i])
+
+    if str(ids[-1]) != validate[Sum % 11] :
+        return False
+
+    return True