【类 型】:test

【原  因】:
【过  程】:
【影  响】:
This commit is contained in:
air 2025-01-20 17:55:59 +08:00
parent 4ac29fd9f2
commit 33836ff937

View File

@ -64,7 +64,7 @@ class PayController extends PublicController
// 获取订单信息 // 获取订单信息
$where['shop_id'] = $_REQUEST['shop_id']; $where['shop_id'] = $_REQUEST['shop_id'];
$where['order_sn'] = $_REQUEST['order_sn']; $where['order_sn'] = $_REQUEST['order_sn'];
$field = array('order_sn,openid,openid,total_price, transport_price, pack_price, pay_sn,main_status,shop_id'); $field = array('order_sn,openid,total_price, transport_price, pack_price, pay_sn,main_status,shop_id');
$orderDb = D('order'); $orderDb = D('order');
if (!$order = $orderDb->where($where)->field($field)->find()) { if (!$order = $orderDb->where($where)->field($field)->find()) {
echo json_encode(array('status' => 0, 'msg' => '订单不存在')); echo json_encode(array('status' => 0, 'msg' => '订单不存在'));