| 
														
															@@ -111,9 +111,11 @@ module.exports = class OrdersController extends ManagerController { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   async selectInfo(order_id) { 
														 | 
														
														 | 
														
															   async selectInfo(order_id) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     const that = this; 
														 | 
														
														 | 
														
															     const that = this; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     const options = { 
														 | 
														
														 | 
														
															     const options = { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      where: { order_id }, include: [ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      where: { order_id }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      include: [ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         { model: that.app.model.PaysConfig, attributes: [ 'pay_name' ], as: 'pays_config' }, 
														 | 
														
														 | 
														
															         { model: that.app.model.PaysConfig, attributes: [ 'pay_name' ], as: 'pays_config' }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         { model: that.app.model.Users, as: 'users', attributes: [ 'account_name', 'nickname' ] }, 
														 | 
														
														 | 
														
															         { model: that.app.model.Users, as: 'users', attributes: [ 'account_name', 'nickname' ] }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        { model: that.app.model.Users, as: 'inviter', attributes: [ 'account_name', 'nickname' ] }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         { 
														 | 
														
														 | 
														
															         { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           model: that.app.model.OrdersProducts, as: 'orders_products', attributes: { 
														 | 
														
														 | 
														
															           model: that.app.model.OrdersProducts, as: 'orders_products', attributes: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             exclude: [ 'product_id', 'create_time', 'order_id', 'activity_name', 'activity_id', 'activity_desc' ], 
														 | 
														
														 | 
														
															             exclude: [ 'product_id', 'create_time', 'order_id', 'activity_name', 'activity_id', 'activity_desc' ], 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -144,6 +146,7 @@ module.exports = class OrdersController extends ManagerController { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       offset: (data.page - 1) * data.limit, limit: data.limit, where: {}, include: [ 
														 | 
														
														 | 
														
															       offset: (data.page - 1) * data.limit, limit: data.limit, where: {}, include: [ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         { model: that.app.model.PaysConfig, attributes: [ 'pay_name' ], as: 'pays_config' }, 
														 | 
														
														 | 
														
															         { model: that.app.model.PaysConfig, attributes: [ 'pay_name' ], as: 'pays_config' }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         { model: that.app.model.Users, as: 'users', attributes: [ 'account_name', 'nickname' ], where: userWhere }, 
														 | 
														
														 | 
														
															         { model: that.app.model.Users, as: 'users', attributes: [ 'account_name', 'nickname' ], where: userWhere }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        { model: that.app.model.Users, as: 'inviter', attributes: [ 'account_name', 'nickname' ] }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         { 
														 | 
														
														 | 
														
															         { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           model: that.app.model.OrdersProducts, as: 'orders_products', attributes: { 
														 | 
														
														 | 
														
															           model: that.app.model.OrdersProducts, as: 'orders_products', attributes: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             exclude: [ 'product_id', 'create_time', 'order_id', 'activity_name', 'activity_id', 'activity_desc' ], 
														 | 
														
														 | 
														
															             exclude: [ 'product_id', 'create_time', 'order_id', 'activity_name', 'activity_id', 'activity_desc' ], 
														 |