|
|
@@ -42,24 +42,33 @@ class Huafei extends BaseController
|
|
42
|
42
|
];
|
|
43
|
43
|
$ret = Db::name("order_huafei")->where("order_number", $order_number)->where("order_sn", $order_no)->update($updateData);
|
|
44
|
44
|
if($ret){
|
|
45
|
|
- //判断数据库有无此订单
|
|
46
|
|
- $type_shop = 9;
|
|
47
|
|
- $orderThird = app()->make(UserThirdRepository::class);
|
|
48
|
|
- //预估养老金
|
|
49
|
|
- $orderThird->yuguOrder(
|
|
50
|
|
- $huafeiInfo['order_pdd_id'],
|
|
51
|
|
- $huafeiInfo['commission'],
|
|
52
|
|
- $huafeiInfo['uid'],
|
|
53
|
|
- $huafeiInfo['order_sn'],
|
|
54
|
|
- $type_shop,
|
|
55
|
|
- 'order_huafei');
|
|
56
|
|
- //预估积分
|
|
57
|
|
- $orderThird->yuguJifen(
|
|
58
|
|
- $huafeiInfo['commission'] ,
|
|
59
|
|
- $huafeiInfo['uid'],
|
|
60
|
|
- $huafeiInfo['order_sn'],
|
|
61
|
|
- $type_shop
|
|
62
|
|
- );
|
|
|
45
|
+ if($param['status'] == 2) {
|
|
|
46
|
+ //判断数据库有无此订单
|
|
|
47
|
+ $type_shop = 9;
|
|
|
48
|
+ $orderThird = app()->make(UserThirdRepository::class);
|
|
|
49
|
+ //预估养老金
|
|
|
50
|
+ $orderThird->yuguOrder(
|
|
|
51
|
+ $huafeiInfo['order_pdd_id'],
|
|
|
52
|
+ $huafeiInfo['commission'],
|
|
|
53
|
+ $huafeiInfo['uid'],
|
|
|
54
|
+ $huafeiInfo['order_sn'],
|
|
|
55
|
+ $type_shop,
|
|
|
56
|
+ 'order_huafei');
|
|
|
57
|
+ //预估积分
|
|
|
58
|
+ $orderThird->yuguJifen(
|
|
|
59
|
+ $huafeiInfo['commission'] ,
|
|
|
60
|
+ $huafeiInfo['uid'],
|
|
|
61
|
+ $huafeiInfo['order_sn'],
|
|
|
62
|
+ $type_shop
|
|
|
63
|
+ );
|
|
|
64
|
+ //复购金
|
|
|
65
|
+ $orderThird->yuguFugou(
|
|
|
66
|
+ $huafeiInfo['commission'] ,
|
|
|
67
|
+ $huafeiInfo['uid'],
|
|
|
68
|
+ $huafeiInfo['order_sn'],
|
|
|
69
|
+ $type_shop
|
|
|
70
|
+ );
|
|
|
71
|
+ }
|
|
63
|
72
|
|
|
64
|
73
|
echo 'success';exit;
|
|
65
|
74
|
}else{
|