|
|
@@ -353,21 +353,21 @@ class Order extends BaseController
|
|
353
|
353
|
// 取出 vr 消耗
|
|
354
|
354
|
$payVr = $this->getValue('user_sign_vr', ['order_id' => $order_id, 'type' => 2,], 'number');
|
|
355
|
355
|
$this->backupAndDelete('user_sign_vr', ['order_id' => $order_id]);
|
|
356
|
|
-// 取出购买赠送积分 / 支出积分
|
|
357
|
|
-// $score = $this->getValue('user_sign_score', ['order_id' => $order_id, 'status' => 1,'source_type' => 3,'uid' => $uid,], 'reward_score');
|
|
358
|
|
-// $payScore = $this->getValue('user_sign_score', ['order_id' => $order_id, 'status' => 1,'pm' => 2,'uid' => $uid,], 'reward_score');
|
|
|
356
|
+ // 取出购买赠送积分 / 支出积分
|
|
|
357
|
+ $score = $this->getValue('user_sign_score', ['order_id' => $order_id, 'status' => 1,'source_type' => 3,'uid' => $uid,], 'reward_score');
|
|
|
358
|
+ $payScore = $this->getValue('user_sign_score', ['order_id' => $order_id, 'status' => 1,'pm' => 2,'uid' => $uid,], 'reward_score');
|
|
359
|
359
|
// // 取出推广赠送的积分和推广人的 uid
|
|
360
|
|
-// $spreadScore = $this->getValue('user_sign_score', ['order_id' => $order_id, 'status' => 1,'pm' => 2,'source_type' => 3,['mark','like','%推广%'],], 'reward_score');
|
|
361
|
|
-// $spreadUid = $this->getValue('user_sign_score', [['order_id' => $order_id], ['status' => 1],['pm' => 2],['source_type' => 3],['mark','like','%推广%'],], 'uid');
|
|
|
360
|
+ $spreadScore = $this->getValue('user_sign_score', ['order_id' => $order_id, 'status' => 1,'pm' => 2,'source_type' => 3,['mark','like','%推广%'],], 'reward_score');
|
|
|
361
|
+ $spreadUid = $this->getValue('user_sign_score', [['order_id' => $order_id], ['status' => 1],['pm' => 2],['source_type' => 3],['mark','like','%推广%'],], 'uid');
|
|
362
|
362
|
// // 删除所有相关积分记录
|
|
363
|
|
-// $this->backupAndDelete('user_sign_score', ['order_id' => $order_id]);
|
|
364
|
|
-// // 贡献值
|
|
365
|
|
-// $gongXian = $this->getValue('user_sign_gongxian', ['order_id' => $order_id, 'status' => 1,'type' => 1,'uid' => $uid,], 'number');
|
|
366
|
|
-// $spreadGongXian = 0;
|
|
367
|
|
-// if ($spreadUid) {
|
|
368
|
|
-// $spreadGongXian = $this->getValue('user_sign_gongxian', ['order_id' => $order_id, 'status' => 1,'type' => 1,'uid' => $spreadUid,], 'number');
|
|
369
|
|
-// }
|
|
370
|
|
-// $this->backupAndDelete('user_sign_gongxian', ['order_id' => $order_id]);
|
|
|
363
|
+ $this->backupAndDelete('user_sign_score', ['order_id' => $order_id]);
|
|
|
364
|
+ // 贡献值
|
|
|
365
|
+ $gongXian = $this->getValue('user_sign_gongxian', ['order_id' => $order_id, 'status' => 1,'type' => 1,'uid' => $uid,], 'number');
|
|
|
366
|
+ $spreadGongXian = 0;
|
|
|
367
|
+ if ($spreadUid) {
|
|
|
368
|
+ $spreadGongXian = $this->getValue('user_sign_gongxian', ['order_id' => $order_id, 'status' => 1,'type' => 1,'uid' => $spreadUid,], 'number');
|
|
|
369
|
+ }
|
|
|
370
|
+ $this->backupAndDelete('user_sign_gongxian', ['order_id' => $order_id]);
|
|
371
|
371
|
// // 养老金 / 推广养老金 / 推广佣金
|
|
372
|
372
|
// $yangLaoJin = $this->getValue('user_bill', ['link_id' => $order_id, 'status' => 1,'pm' => 1,'uid' => $uid,], 'number');
|
|
373
|
373
|
// $spreadYlj = 0;
|