mrs为名的更改为sf
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user