【类 型】:fix

【原  因】:数据库修改新加字段
【过  程】:getOrderList接口 取transport_price,pack_price字段
【影  响】:
This commit is contained in:
sszdot 2024-12-18 15:00:01 +08:00
parent a2cea424df
commit fe25b9d0b6

View File

@ -148,7 +148,7 @@ class CheckController extends PublicController
$whereSite['shop_id'] = $_REQUEST['shop_id'];
$site = $siteDb->where($whereSite)->find();
if (!$site) {
echo json_encode(array('status' => 0, 'msg' => '收货地址不合法'));
echo json_encode(array('status' => 0, 'msg' => '收货地址错误'));
exit(); //没有收货地址 有问题跳出
}
$data['receive_site_id'] = $_REQUEST['site_id'];
@ -171,7 +171,7 @@ class CheckController extends PublicController
*/
public function getOrderList()
{
$field = array('order_sn,food_sn,total_weight,total_num,total_price,refund_price,receiver,tel,receive_site_id,receive_site_name,remark,product_snapshot,main_status,shipment_status,refund_status,refund_remark,order_time,paid_time,refunded_time,completed_time,received_time,shipped_time,delivered_time,refundapply_time,rejected_time');
$field = array('order_sn,food_sn,total_weight,total_num,total_price,transport_price,pack_price,refund_price,receiver,tel,receive_site_id,receive_site_name,remark,product_snapshot,main_status,shipment_status,refund_status,refund_remark,order_time,paid_time,refunded_time,completed_time,received_time,shipped_time,delivered_time,refundapply_time,rejected_time');
$where['openid'] = $this->openid;
$where['main_status'] = array('neq', '已取消'); //排除已取消的订单
$orderDb = D('order');