Authored by 毕凯

Merge branch 'release/5.8.1' into 'gray'

invoice



See merge request !693
... ... @@ -174,7 +174,8 @@ class BuyNowController {
};
// 是否开发票
if (req.body.invoice) {
if (req.body.invoice && req.body.invoice === 'true') {
params.invoice = true;
params.invoices_type = req.body.invoices_type; // 发票类型:纸质 1,电子 2
params.invoices_title = req.body.invoices_title || '个人'; // 发票抬头,个人前端不传此值
params.receiverMobile = req.body.receiverMobile; // 接收人电话
... ...
... ... @@ -2,7 +2,6 @@
* @Author: Targaryen
* @Date: 2017-06-21 10:15:45
* @Last Modified by: Targaryen
* @Last Modified time: 2017-06-23 17:44:33
*/
const api = global.yoho.API;
... ... @@ -130,7 +129,7 @@ class BuyNowModel extends global.yoho.BaseModel {
}
// 发票种类写死明细
if (params.invoices_type_id) {
if (params.invoice) {
finalParams.invoice_content = 12;
}
... ...