Lee Morgan 6 年之前
父節點
當前提交
0ddde1f73f
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      controllers/otherData.js

+ 2 - 0
controllers/otherData.js

@@ -219,6 +219,8 @@ module.exports = {
         let authorizationCode = req.url.slice(req.url.indexOf("code=") + 5);
         req.session.merchantId = req.url.slice(req.url.indexOf("merchant_id=") + 12, req.url.indexOf("&client_id"))
         
+        console.log("I have run");
+
         axios.get(`${process.env.CLOVER_ADDRESS}/oauth/token?client_id=${process.env.SUBLINE_CLOVER_APPID}&client_secret=${process.env.SUBLINE_CLOVER_APPSECRET}&code=${authorizationCode}`)
             .then((response)=>{
                 req.session.accessToken = response.data.access_token;