标签:top tor dcl env rrg order bag P20 eee
退单流程:
1、上游 api:根据订单号,将订单状态 state 改待确定(501)
-- 查上游订单
SELECT id,user_id,sm_order_id,point,state FROM rk_order WHERE id in (210652,210651);
2、下游 scoremall:根据上游订单号,找到下游 sm_order_id,将订单状态 state 改取消订单(103)
-- 查下游订单
SELECT id,user_id,price,state FROM sm_order WHERE id in (24970,24971); #user_id仅为区分otc跟rx
-- 查用户积分余额
SELECT point_user,earn_all_point,total_point FROM rk_user WHERE id=12689;
3、上游api:如果是订单成功改失败,须执行 php tools/sh/reSendOrderToSdp.php 订单id
——执行后,上游订单状态为301(失败订单),用户poing_user自动加回扣除积分,并添加到rk_fortunelog
SELECT * FROM rk_fortunelog WHERE user_id=12689 ORDER BY createtime desc
关于积分商城退积分 --mai
标签:top tor dcl env rrg order bag P20 eee
原文地址:https://www.cnblogs.com/lihuobao/p/9887314.html