Showing
1 changed file
with
6 additions
and
16 deletions
@@ -251,26 +251,16 @@ class OrderModel | @@ -251,26 +251,16 @@ class OrderModel | ||
251 | if(isset($orderDetail['data']['invoice']['type']) == false && empty($orderDetail['data']['invoice']['type'])){ | 251 | if(isset($orderDetail['data']['invoice']['type']) == false && empty($orderDetail['data']['invoice']['type'])){ |
252 | break; | 252 | break; |
253 | } | 253 | } |
254 | - //判断是否显示电子发票下载地址 | ||
255 | - $result['invoice'] = $orderDetail['data']['invoice']; | ||
256 | - //纸质 1,电子 2 | ||
257 | - $result['invoice']['type'] = $result['invoice']['type'] * 1 === 2 ? true : false;//发票类型 | ||
258 | - $result['invoice']['title'] = $result['invoice']['title'];//发票抬头 | ||
259 | - $result['invoice']['contentValue'] = $result['invoice']['contentValue'];//发票内容 | ||
260 | - $result['invoice']['mobilePhone'] = $result['invoice']['mobilePhone'];//联系电话 | ||
261 | - //电子发票下载链接 | 254 | + $result['invoice']['type'] = $orderDetail['data']['invoice']['type'] * 1 === 2 ? true : false;//发票类型 纸质 1,电子 2 |
255 | + $result['invoice']['title'] = $orderDetail['data']['invoice']['title'];//发票抬头 | ||
256 | + $result['invoice']['contentValue'] = $orderDetail['data']['invoice']['contentValue'];//发票内容 | ||
257 | + $result['invoice']['mobilePhone'] = $orderDetail['data']['invoice']['mobilePhone'];//联系电话 | ||
258 | + //电子发票下载链接显示 | ||
262 | if($orderDetail['data']['invoice']['showInvoice'] == true && isset($orderDetail['data']['invoice']['pdfUrl'])){ | 259 | if($orderDetail['data']['invoice']['showInvoice'] == true && isset($orderDetail['data']['invoice']['pdfUrl'])){ |
263 | - $result['invoice']['pdfUrl'] = $result['invoice']['pdfUrl']; | 260 | + $result['invoice']['pdfUrl'] = $orderDetail['data']['invoice']['pdfUrl']; |
264 | } | 261 | } |
265 | } | 262 | } |
266 | while(false); | 263 | while(false); |
267 | -// $result['invoice'] = array( | ||
268 | -// 'type' => true,//-- 纸质 false,电子 true | ||
269 | -// 'title' => '发票抬头',// --发票抬头 | ||
270 | -// 'contentValue' => '服饰',//-- 发票内容 | ||
271 | -// 'mobilePhone' => '13651898702',//--电话 | ||
272 | -// 'pdfUrl' => 'http://redmine.yoho.cn/attachments/download/2732/%E7%94%B5%E5%AD%90%E5%8F%91%E7%A5%A8-wap%E7%AB%AF.pdf',//--pdf下载地址 | ||
273 | -// ); | ||
274 | } | 264 | } |
275 | //取消订单原因列表 | 265 | //取消订单原因列表 |
276 | $resons = OrderData::closeReasons(); | 266 | $resons = OrderData::closeReasons(); |
-
Please register or login to post a comment