Authored by 郭成尧

parseint-handle

@@ -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-03-01 16:38:39 5 + * @Last Modified time: 2017-04-20 21:01:44
6 */ 6 */
7 7
8 'use strict'; 8 'use strict';
@@ -107,7 +107,7 @@ const tools = { @@ -107,7 +107,7 @@ const tools = {
107 nonce_str: common.nonceStr(), 107 nonce_str: common.nonceStr(),
108 body: '有货订单号:' + params.orderCode, 108 body: '有货订单号:' + params.orderCode,
109 out_trade_no: 'YOHOBuy_' + params.orderCode, 109 out_trade_no: 'YOHOBuy_' + params.orderCode,
110 - total_fee: params.totalFee * 100, 110 + total_fee: _.parseInt(params.totalFee * 100),
111 trade_type: 'JSAPI', 111 trade_type: 'JSAPI',
112 time_start: moment().format('YYYYMMDDHHmmss'), 112 time_start: moment().format('YYYYMMDDHHmmss'),
113 time_expire: moment().add(2, 'hours').format('YYYYMMDDHHmmss'), 113 time_expire: moment().add(2, 'hours').format('YYYYMMDDHHmmss'),