【类 型】:fix

【原  因】:发送mqtt主题需要openid 并未取到此字段
【过  程】:从order列表里面取出openid
【影  响】:
This commit is contained in:
air 2025-01-15 19:38:19 +08:00
parent 417f6b621f
commit 4cf7eecf07

View File

@ -68,7 +68,7 @@ class PayController extends PublicController
// 获取订单信息
$where['shop_id'] = $_REQUEST['shop_id'];
$where['order_sn'] = $_REQUEST['order_sn'];
$field = array('order_sn, 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');
if (!$order = $orderDb->where($where)->field($field)->find()) {
echo json_encode(array('status' => 0, 'msg' => '订单不存在'));