Beispiel #1
0
 def prepare(self):
     public_req_param = params.genericPackParam()
     util.inject_all_soft(public_req_param,
                          self.context['session'])  # 取初始化参数
     self.pack_method(public_req_param)
     session_code_code = self.context['session']['nodeCode']
     if "IDENTITY" != session_code_code:  # 不是IDENTITY
         print("NOT IDENTITY NODE, SKIP!")
         self.context['environ']['skip'] = True  # 跳过
         return
     biz = {
         "bizType": "OCR",
         "fileSuffix": "jpg",
         "fileKeys": ["idCardImg", "portraitImg"],
         "idCardImg":
         "\/9j\/4AAQSkZJRgABAQAAAQABAAD\/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P\/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P\/wAARCAGVAqkDASIAAhEBAxEB\/8QAGgAAAwEBAQEAAAAAAAAAAAAAAAECAwQFBv\/EACkQAAMAAgMAAgEFAAMAAwAAAAABAgMRBCExEkEFEyIyUWEUcYFSkaH\/xAAYAQEBAQEBAAAAAAAAAAAAAAAAAQIDBP\/EABkRAQEBAQEBAAAAAAAAAAAAAAABERICMf\/aAAwDAQACEQMRAD8A6djJHs87oYg2CKGIGwQDSBgADQtgIAJZTZKIKQxINlQx7J2GwKDYhN9gUmPZCY9gVsWxAUUholMNgVsNiAIexA2IKpMeyRhD2GxMWwHvSPK\/Kc5Y4a2dPO5SxQ+z5P8AJ8x5raT6LJo5+XyHmyNtmUyKVtmqWkdJGSekZUyrozphCbCJd0khes9L8bxdtVSFV1\/juKolNo9NdIjHKiUkU2YaNsQAiBouUKZNscbAInb0l2bzKxrb9BOca\/05s+ffSLiKz8j6RzzNZH2Vjxu3tnVjxqUAYsKnRrvQnWkcfJ5ahPsitc\/JUJ9ni878h6kzHm8502kzzqt29tlkS08mSsjbbJSGkVMm2dEo0mQSKXRQ\/j0Y5UbNmd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LtnZje0BYq8GTQBJZMlBXPyU3L0cWKqi+z0M\/hjGJUBlfM10CfzWy8vDVfRH6VY10EZKa+Z6GFftRx\/Jy\/Dpw22gOgBIYAAAFBNFE0AQWTJQQAAAIAAKGR9lvwhBFIYAFAAAAAAAmZvtlvwj7CKQAAUgYxMCaIXpVMlEFoVDRNgY5GZesvIyZQFwjaURCNZRQ0NAkMoAGgIJoj7LomUBaAACAQAAADEFMQAB4mPHPTOzHKQAWsNplM3xSkAEaavpGOW2AFHDyctTLZ4fP5NvYAB5bXzrtndwuNDab7ACK93iYplLR2SkAAaSi5QAQVoaACoT9LlAAFAABTQwAIVeEoACuPn5HMvR5f6lb3sAA6eHPyrbZ6+NakAIKJr0AKhooACsMw8PgABqyGk\/UABEVjlvw0iEl0AAWAAFAwABE0AAOfCgAAAACAAABUSvQACvoAAKYgAAEAECrwhegBRQAAQCoACs6CQAgozsAAwr0cAAG0miACopAAFU0AABFBPoAQUAAACAAAWgAAAAA\/\/2Q==",
         "portraitImg": ""
     }
     public_req_param['userNo'] = self.context['session']['userNo']
     public_req_param['token'] = self.context['session']['token']
     public_req_param["bizContent"] = str(biz)  # 业务数据
     public_req_param["deviceInfo"] = str(
         self.context['session']['deviceInfo'])
     self.context['request'] = public_req_param  # 归根到底目的是为了拼装request参数
     print('ItemCommitQId', json.dumps(public_req_param))
Beispiel #2
0
 def prepare(self):
     public_req_param = params.genericPackParam()
     util.inject_all_soft(public_req_param,
                          self.context['session'])  # 取初始化参数
     self.pack_method(public_req_param)
     person = self.context['session']['personal_info']
     session_code_code = self.context['session']['nodeCode']
     if "PERSONINFO" != session_code_code:  # 不是PERSONINFO
         print("NOT PERSONINFO NODE, SKIP!")
         self.context['environ']['skip'] = True  # 跳过
         return
     biz = {
         "applNo":
         "",
         'flowNo':
         self.context['session']['flowNo'],
         "nodeCode":
         session_code_code,
         "nodeNo":
         self.context['session']['nodeNo'],
         "segmentInfoList": [{
             "segmentCode": "PERSONINFO",
             "segmentName": "个人信息",
             "segmentValue": [person]
         }]
     }
     public_req_param['userNo'] = self.context['session']['userNo']
     public_req_param['token'] = self.context['session']['token']
     public_req_param["bizContent"] = str(biz)  # 业务数据
     public_req_param["deviceInfo"] = str(
         self.context['session']['deviceInfo'])
     self.context['request'] = public_req_param  # 归根到底目的是为了拼装request参数
     print("PERSONAL-INFO PARAM", json.dumps(public_req_param))
     return
Beispiel #3
0
 def prepare(self):
     public_req_param = params.genericPackParam()
     util.inject_all_soft(public_req_param,
                          self.context['session'])  # 取初始化参数
     self.pack_method(public_req_param)
     session_code_code = self.context['session']['nodeCode']
     if "IDENTITY" != session_code_code:  # 不是IDENTITY
         print("NOT IDENTITY NODE, SKIP!")
         self.context['environ']['skip'] = True  # 跳过
         return
     biz = {
         "applNo":
         "",
         'flowNo':
         self.context['session']['flowNo'],
         "nodeCode":
         self.context['session']['nodeCode'],
         "nodeNo":
         self.context['session']['nodeNo'],
         "segmentInfoList": [{
             "segmentCode":
             "IDENTITY",
             "segmentName":
             "身份信息",
             "segmentValue": [self.context['session']['idcard']]
         }]
     }
     public_req_param['userNo'] = self.context['session']['userNo']
     public_req_param['token'] = self.context['session']['token']
     public_req_param["bizContent"] = str(biz)  # 业务数据
     public_req_param["deviceInfo"] = str(
         self.context['session']['deviceInfo'])
     self.context['request'] = public_req_param  # 归根到底目的是为了拼装request参数
     print('ItemCommitIdUpload', json.dumps(public_req_param))
Beispiel #4
0
 def prepare(self):
     public_req_param = params.genericPackParam()
     util.inject_all_soft(public_req_param,
                          self.context['session'])  # 取初始化参数
     self.pack_method(public_req_param)
     biz = {}
     public_req_param['userNo'] = self.context['session']['userNo']
     public_req_param["bizContent"] = str(biz)  # 业务数据
     public_req_param["deviceInfo"] = str(
         self.context['session']['deviceInfo'])
     self.context['request'] = public_req_param  # 归根到底目的是为了拼装request参数
     print("summQ", public_req_param)
Beispiel #5
0
 def prepare(self):
     public_req_param = params.genericPackParam()
     util.inject_all_soft(public_req_param,
                          self.context['session'])  # 取初始化参数
     self.pack_method(public_req_param)
     biz = {
         "password":
         str(
             sec.encrypt(
                 bytes(self.context['environ']['newtpassword'],
                       encoding='utf8')), 'utf-8'),
         "pwdType":
         "T"
     }
     public_req_param['userNo'] = self.context['session']['userNo']
     public_req_param['token'] = self.context['session']['token']
     public_req_param["bizContent"] = str(biz)  # 业务数据
     public_req_param["deviceInfo"] = str(
         self.context['session']['deviceInfo'])  # deviceInfo需要转换
     self.context['request'] = public_req_param  # 归根到底目的是为了拼装request参数
     print('ItemCommitTPwd', json.dumps(public_req_param))
Beispiel #6
0
 def prepare(self):
     public_req_param = params.genericPackParam()
     util.inject_all_soft(public_req_param,
                          self.context['session'])  # 取初始化参数
     ENV = self.context['environ']['env']
     sec.init(ENV)  # 初始化加密的公私钥
     self.pack_method(public_req_param)
     biz = {}
     biz['loginType'] = "ORIGIN"
     biz['mobileNo'] = self.context['environ'][
         'mobileNo']  # 手机号和password放到了environ里面
     biz['password'] = str(
         sec.encrypt(
             bytes(self.context['environ']['password'], encoding='utf8')),
         'utf-8')
     biz['geoInfo'] = str(
         self.context['session']['geo'])  # 地理geo必传,否则会落库报latitude非空键异常
     public_req_param["bizContent"] = str(biz)  # 业务数据
     public_req_param["deviceInfo"] = str(
         self.context['session']['deviceInfo'])
     self.context['request'] = public_req_param  # 归根到底目的是为了拼装request参数
     print("LOGIN PARAM", public_req_param)
Beispiel #7
0
 def prepare(self):
     public_req_param = params.genericPackParam()
     util.inject_all_soft(public_req_param,
                          self.context['session'])  # 取初始化参数
     self.pack_method(public_req_param)
     biz = {}
     biz['flowNo'] = self.context['session']['flowNo']  # 取前面返回的flowNo
     session_code_code = self.context['session']['nodeCode']
     if "FACE" != session_code_code:  # 不是FACE
         print("NOT FACE NODE, SKIP!")
         self.context['environ']['skip'] = True  # 跳过
         return
     biz['nodeNo'] = self.context['session']['nodeNo']  # 取前面返回的nodeNo
     biz['nodeCode'] = self.context['session']['nodeCode']  # 取前面返回的nodeCode
     segmentInfoList = [{
         "segmentCode":
         "FACE",
         "segmentName":
         "人脸识别",
         "segmentValue": [{
             "fileImageMap": {},
             "livenessId": "c9765503-2bbc-49ba-afe0-11e545b38473",
             "detectState": "S",
             "failCode": "undefined",
             "faceImage": "",
             "faceConsumeTime": "12095",
             "facePartner": "ADVANCE"
         }]
     }]
     biz['segmentInfoList'] = segmentInfoList
     public_req_param['userNo'] = self.context['session']['userNo']
     public_req_param['token'] = self.context['session']['token']
     public_req_param["bizContent"] = str(biz)  # 业务数据
     public_req_param["deviceInfo"] = str(
         self.context['session']['deviceInfo'])
     self.context['request'] = public_req_param  # 归根到底目的是为了拼装request参数
     print('ItemCommitQFace', json.dumps(public_req_param))