mrs为名的更改为sf

This commit is contained in:
jinling.yang
2022-11-22 10:20:18 +08:00
parent bf5f8fd326
commit 3cbd1140bb
8 changed files with 20 additions and 20 deletions

View File

@@ -13,16 +13,16 @@ class Common(models.Model):
def get_headers(self,token,mrs_secret_key):
def get_headers(self,token, secret_key):
'''
获取requests中的heardes参数
'''
timestamp = int(time.time())
check_str = '%s%s%s' % (token, timestamp, mrs_secret_key)
check_mrs_str = hashlib.sha1(check_str.encode('utf-8')).hexdigest()
check_str = '%s%s%s' % (token, timestamp, secret_key)
check_sf_str = hashlib.sha1(check_str.encode('utf-8')).hexdigest()
headers = {'TOKEN': token,
'TIMESTAMP': str(timestamp),
'checkstr': check_mrs_str}
'checkstr': check_sf_str}
return headers

View File

@@ -66,7 +66,7 @@ class MrsProcessingOrder(models.Model):
processing_technology_ids = fields.Many2many('sf.processing.technology', 'sf_associated_processes',
index=True, string='加工工艺')
production_process_id = fields.Many2one('mrs.production.process', string="表面工艺")
production_process_id = fields.Many2one('sf.production.process', string="表面工艺")
class Tray(models.Model):