...
|
...
|
@@ -3,7 +3,7 @@ |
|
|
* @Author: Targaryen
|
|
|
* @Date: 2017-01-04 15:17:51
|
|
|
* @Last Modified by: Targaryen
|
|
|
* @Last Modified time: 2017-03-20 14:03:48
|
|
|
* @Last Modified time: 2017-03-31 17:25:34
|
|
|
*/
|
|
|
|
|
|
'use strict';
|
...
|
...
|
@@ -29,7 +29,7 @@ const payCenter = (req, res, next) => { |
|
|
let orderCode = req.query.order_code;
|
|
|
let uid = req.user.uid;
|
|
|
let sessionKey = req.session.TOKEN;
|
|
|
let userAgent = req.get('User-Agent');
|
|
|
let userAgent = req.get('User-Agent') || '';
|
|
|
let hasWxShare = Boolean(userAgent.match(/MicroMessenger/i) && userAgent.match(/MicroMessenger/i).length > 0);
|
|
|
|
|
|
if (!orderCode || !uid) {
|
...
|
...
|
|