// var mysql = require('mysql'); var mysqlcn = require('./mysqlcn.js'); var query = mysqlcn.query; var checkorder = require('./checkorder.js'); var config = require('../pay/config.js'); var doRepairOrder = function(){ try{ //console.log("------------doRepairOrder"); // flag=1 的是没有发货的, o // talkingdata=1的是未向talkingdata 报道的订单 query("select * from payinfo where flag=1 or talkingdata=1 and istest=2",function(qerr,vals,fields){ if (vals!=null){ for (var i=0;i