|
@@ -470,6 +470,7 @@ export class tools {
|
|
|
public static requestRechargeOrderBuy(pay_type:number, goods_id:number, cb:Function) {
|
|
|
let opt = {'pay_type':pay_type,'goods_id':goods_id}
|
|
|
http.DynamicRequest(config.url_confg.Dynamic.recharge.order_buy,opt,(err=null,data=null)=>{
|
|
|
+ log.Debug('下单 data=',data,'err=',err)
|
|
|
if(!err&&data) {
|
|
|
if(data.code==config.url_confg.StatesCode.SUCCESS){
|
|
|
let order_id = data.content.order_id
|
|
@@ -487,6 +488,7 @@ export class tools {
|
|
|
public static requestRechargeOrderInfo(order_id:string, cb:Function) {
|
|
|
let opt = {'order_id':order_id}
|
|
|
http.DynamicRequest(config.url_confg.Dynamic.recharge.order_info,opt,(err=null,data=null)=>{
|
|
|
+ log.Debug('查询订单 data=',data,'err=',err)
|
|
|
if(!err&&data) {
|
|
|
if(data.code==config.url_confg.StatesCode.SUCCESS){
|
|
|
let status = data.content.status //订单状态 1:支付中 2:已经支付
|