Commit f9d80b22ea3980defe1fb7a30d7a704c0c4c18b3

Authored by Nattapon Wongpaet
1 parent 1b5ca11b
Exists in master and in 1 other branch dev

update header vizcard

ais-structure/src/modules/helper/connection.js
... ... @@ -384,7 +384,7 @@ connection.requestJsonToD01 = async function (req,obj,cmd,myMethod,filter) {
384 384 // }
385 385 }
386 386  
387   - console.log(result);
  387 + // console.log(result);
388 388  
389 389 // if(result.response)
390 390 // {
... ...
ais-structure/src/modules/vizcard/vizCard.ctrl.js
  1 +var env = process.env.NODE_ENV || 'development';
  2 +var conf = require('../../config/config.js').get(env);
1 3 var parseJson = require('xml-js');
2   -
3 4 var stats = require('../helper/stats.js');
4 5 var messageSOAP = require('../helper/messageSOAP.js');
5 6 var validatorHelper = require('../helper/validator.js');
... ... @@ -41,7 +42,7 @@ exports.vizcard = async function (req, res, next) {
41 42 };
42 43  
43 44 var objHeader = {
44   - 'X-Redirect-Url' : 'http://spwcdxtst.spwg.local:6300/hPGService/hpGVizOnline/CustomerService.asmx',
  45 + 'X-Redirect-Url' : conf.service.SACF.SPW_SearchCustomer_URL,
45 46 'X-Session-Id' : req.get('X-Session-Id')
46 47 }
47 48  
... ... @@ -89,8 +90,8 @@ exports.vizcard = async function (req, res, next) {
89 90 function validator(req,cmd)
90 91 {
91 92 var list = [];
92   - list.push([true,"queryStr","commandId","string"]);
93   - list.push([true,"queryStr","clientName","string"]);
  93 + // list.push([true,"queryStr","commandId","string"]);
  94 + // list.push([true,"queryStr","clientName","string"]);
94 95 // list.push([true,"queryStr","lastName","string"]);
95 96 // list.push([true,"queryStr","emailAddress","string"]);
96 97 // list.push([true,"queryStr","mobileNo","string"]);
... ...