Authored by 邱骏

去掉log

@@ -58,7 +58,7 @@ let calcSigature = function(ticket_res, res) { // 计算signature @@ -58,7 +58,7 @@ let calcSigature = function(ticket_res, res) { // 计算signature
58 let url = ticket_res.url; 58 let url = ticket_res.url;
59 let str = `jsapi_ticket=${ticket}&noncestr=${nonceStr}&timestamp=${timestamp}&url=${url}`; 59 let str = `jsapi_ticket=${ticket}&noncestr=${nonceStr}&timestamp=${timestamp}&url=${url}`;
60 let signature = sha1(str); 60 let signature = sha1(str);
61 - 61 +
62 let result = { 62 let result = {
63 appId: appID, 63 appId: appID,
64 nonceStr, 64 nonceStr,
@@ -33,7 +33,6 @@ class WechatModel extends global.yoho.BaseModel { @@ -33,7 +33,6 @@ class WechatModel extends global.yoho.BaseModel {
33 (access_token, access_ticket, access_create_time, access_expired) values 33 (access_token, access_ticket, access_create_time, access_expired) values
34 (:access_token, :access_ticket, :access_create_time, :access_expired);`; 34 (:access_token, :access_ticket, :access_create_time, :access_expired);`;
35 35
36 - console.log(strSql, params);  
37 return mysqlCli.insert(strSql, params); 36 return mysqlCli.insert(strSql, params);
38 } else if (type === 'update') { 37 } else if (type === 'update') {
39 strSql = `update ${TABLE_WECHAT} set 38 strSql = `update ${TABLE_WECHAT} set
@@ -42,7 +41,6 @@ class WechatModel extends global.yoho.BaseModel { @@ -42,7 +41,6 @@ class WechatModel extends global.yoho.BaseModel {
42 access_create_time = :access_create_time, 41 access_create_time = :access_create_time,
43 access_expired = :access_expired`; 42 access_expired = :access_expired`;
44 43
45 - console.log(strSql);  
46 return mysqlCli.update(strSql, params); 44 return mysqlCli.update(strSql, params);
47 } 45 }
48 46