Showing
1 changed file
with
2 additions
and
2 deletions
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | * @Author: Targaryen | 2 | * @Author: Targaryen |
3 | * @Date: 2017-01-03 17:42:41 | 3 | * @Date: 2017-01-03 17:42:41 |
4 | * @Last Modified by: Targaryen | 4 | * @Last Modified by: Targaryen |
5 | - * @Last Modified time: 2017-02-20 17:46:16 | 5 | + * @Last Modified time: 2017-02-27 16:34:09 |
6 | */ | 6 | */ |
7 | 7 | ||
8 | 'use strict'; | 8 | 'use strict'; |
@@ -173,7 +173,7 @@ const Wechat = { | @@ -173,7 +173,7 @@ const Wechat = { | ||
173 | ip: ip | 173 | ip: ip |
174 | }); | 174 | }); |
175 | 175 | ||
176 | - if (unifiedOrderResult) { | 176 | + if (unifiedOrderResult && unifiedOrderResult.appid && unifiedOrderResult.prepay_id) { |
177 | let nonceStr = common.nonceStr(); | 177 | let nonceStr = common.nonceStr(); |
178 | 178 | ||
179 | let resParams = { | 179 | let resParams = { |
-
Please register or login to post a comment