|
|
@@ -374,12 +374,12 @@ class Order extends BaseController
|
|
374
|
374
|
// // 删除所有相关积分记录
|
|
375
|
375
|
$this->backupAndDelete('user_sign_score', ['order_id' => $order_id]);
|
|
376
|
376
|
// // 贡献值
|
|
377
|
|
-// $gongXian = $this->getValue('user_sign_gongxian', ['order_id' => $order_id, 'status' => 1,'type' => 1,'uid' => $uid,], 'number');
|
|
378
|
|
-// $spreadGongXian = 0;
|
|
379
|
|
-// if ($spreadUid) {
|
|
380
|
|
-// $spreadGongXian = $this->getValue('user_sign_gongxian', ['order_id' => $order_id, 'status' => 1,'type' => 1,'uid' => $spreadUid,], 'number');
|
|
381
|
|
-// }
|
|
382
|
|
-// $this->backupAndDelete('user_sign_gongxian', ['order_id' => $order_id]);
|
|
|
377
|
+ $gongXian = $this->getValue('user_sign_gongxian', ['order_id' => $order_id, 'status' => 1,'type' => 1,'uid' => $uid,], 'number');
|
|
|
378
|
+ $spreadGongXian = 0;
|
|
|
379
|
+ if ($spreadUid) {
|
|
|
380
|
+ $spreadGongXian = $this->getValue('user_sign_gongxian', ['order_id' => $order_id, 'status' => 1,'type' => 1,'uid' => $spreadUid,], 'number');
|
|
|
381
|
+ }
|
|
|
382
|
+ $this->backupAndDelete('user_sign_gongxian', ['order_id' => $order_id]);
|
|
383
|
383
|
// // 养老金 / 推广养老金 / 推广佣金
|
|
384
|
384
|
// $yangLaoJin = $this->getValue('user_bill', ['link_id' => $order_id, 'status' => 1,'pm' => 1,'uid' => $uid,], 'number');
|
|
385
|
385
|
// $spreadYlj = 0;
|