Skip to content

Commit

Permalink
Merge pull request #1 from lymanlai/lymanlai-patch-1
Browse files Browse the repository at this point in the history
Update wxpay.js
  • Loading branch information
lymanlai authored Nov 6, 2016
2 parents 134277b + 6673cd8 commit 30ba974
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/wxpay.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ WXPay.mix('getBrandWCPayRequestParams', function(order, fn){
order.trade_type = "JSAPI";
var _this = this;
this.createUnifiedOrder(order, function(err, data){
if (data.return_code === 'FAIL') {
fn(data)
return
}
var reqparam = {
appId: _this.options.appid,
timeStamp: Math.floor(Date.now()/1000)+"",
Expand Down

0 comments on commit 30ba974

Please sign in to comment.