Compare commits
2 Commits
fabec16638
...
d079b8263d
Author | SHA1 | Date | |
---|---|---|---|
![]() |
d079b8263d | ||
![]() |
a14eb9f3e1 |
@ -76,7 +76,7 @@ class PayController extends PublicController
|
|||||||
//设置获取签名的订单参数
|
//设置获取签名的订单参数
|
||||||
$orderParameter = [
|
$orderParameter = [
|
||||||
'out_trade_no' => $order['order_sn'],
|
'out_trade_no' => $order['order_sn'],
|
||||||
'description' => $order['shop_id'], //用jwt加密 shop_id商铺id 存放
|
'description' => $order['shop_id'], //shop_id商铺id 存放
|
||||||
'amount' => [
|
'amount' => [
|
||||||
'total' => $order['total_price'] * 100, //单位:分
|
'total' => $order['total_price'] * 100, //单位:分
|
||||||
'currency' => 'CNY',
|
'currency' => 'CNY',
|
||||||
@ -113,8 +113,8 @@ class PayController extends PublicController
|
|||||||
$orderDb->where($where)->data($data)->save();
|
$orderDb->where($where)->data($data)->save();
|
||||||
}
|
}
|
||||||
// 构建发布主题 并向地面终端提示刷新信息
|
// 构建发布主题 并向地面终端提示刷新信息
|
||||||
$topic = 'refreshQuestList/' . $result['resource']['ciphertext']['description'];
|
$topic = 'refreshQuestList/2dc23dcfecc05fb1';
|
||||||
$this->publish($topic, 1);
|
$this->publish($topic, $result['resource']['ciphertext']['description']);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
// 捕获并记录可能的异常
|
// 捕获并记录可能的异常
|
||||||
error_log('支付回调处理错误:' . $e->getMessage());
|
error_log('支付回调处理错误:' . $e->getMessage());
|
||||||
|
@ -525,28 +525,6 @@ class PlaneController extends PublicController
|
|||||||
echo json_encode(array('status' => 0, 'msg' => '删除失败'));
|
echo json_encode(array('status' => 0, 'msg' => '删除失败'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* @description: 获取 待发货 待收货 没有发起退款和正在发起退款状态 订单
|
|
||||||
*/
|
|
||||||
public function getQuestList()
|
|
||||||
{
|
|
||||||
if ($this->tokenShop_id != C('powerId')) { //非总管理员
|
|
||||||
$where['lr_order.shop_id'] = $this->tokenShop_id;
|
|
||||||
}
|
|
||||||
|
|
||||||
$where['lr_order.del'] = "0";
|
|
||||||
$where['lr_order.status'] = array('in', array('20', '30')); //待发货 待收货
|
|
||||||
$where['lr_order.back'] = array('in', array('0', '1')); //没有退款状态 和 申请退款状态 一并返回
|
|
||||||
$orderDb = D('order');
|
|
||||||
$field = array('lr_order.id', 'lr_order.shop_id', 'lr_order.order_sn', 'lr_order.food_sn', 'lr_order.uid', 'lr_user.name', 'lr_order.price', 'lr_order.tel', 'lr_order.status', 'lr_order.receive_site_id', 'lr_order.receive_site_name', 'lr_receive_site.bind_route', 'lr_receive_site.runing', 'lr_order.product_num', 'lr_order.quest', 'lr_order.back', 'lr_order.addtime', 'lr_order.remark', 'lr_order.back_remark');
|
|
||||||
$questList = $orderDb->join('lr_user ON lr_order.uid = lr_user.id')->join('lr_receive_site ON lr_order.receive_site_id = lr_receive_site.id')->where($where)->field($field)->select();
|
|
||||||
$orderProductDb = D('order_product');
|
|
||||||
foreach ($questList as $key => $value) {
|
|
||||||
$proWhere['order_id'] = $value['id'];
|
|
||||||
$questList[$key]['products'] = $orderProductDb->where($proWhere)->select();
|
|
||||||
}
|
|
||||||
echo json_encode(array('status' => 1, 'msg' => '访问成功', "questList" => $questList));
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* @description: 改变订单状态或退款字段 不处理 已取消 未付款 交易关闭的订单
|
* @description: 改变订单状态或退款字段 不处理 已取消 未付款 交易关闭的订单
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user