|
|
@@ -357,20 +357,17 @@ class Order extends BaseController
|
|
357
|
357
|
$score = $this->getValue('user_sign_score', ['order_id' => $order_id, 'status' => 1,'source_type' => 3,'uid' => $uid,'pm' => 1], 'reward_socre');
|
|
358
|
358
|
$payScore = $this->getValue('user_sign_score', ['order_id' => $order_id, 'status' => 1,'pm' => 2,'uid' => $uid,], 'reward_socre');
|
|
359
|
359
|
// // 取出推广赠送的积分和推广人的 uid
|
|
360
|
|
- $spreadScore = $this->getValue('user_sign_score', [
|
|
361
|
|
- ['order_id', '=', $order_id],
|
|
362
|
|
- ['status', '=', 1],
|
|
363
|
|
- ['pm', '=', 2],
|
|
364
|
|
- ['source_type', '=', 3],
|
|
365
|
|
- ['mark', 'like', '%推广%'],
|
|
366
|
|
- ], 'reward_socre');
|
|
367
|
360
|
$spreadUid = $this->getValue('user_sign_score', [
|
|
368
|
361
|
['order_id', '=', $order_id],
|
|
369
|
362
|
['status', '=', 1],
|
|
370
|
363
|
['pm', '=', 2],
|
|
371
|
364
|
['source_type', '=', 3],
|
|
372
|
|
- ['mark', 'like', '%推广%'],
|
|
|
365
|
+ ['mark', 'like', '%' . (string) '推广' . '%'],
|
|
373
|
366
|
], 'uid');
|
|
|
367
|
+ $spreadScore = $this->getValue('user_sign_score', [
|
|
|
368
|
+ ['order_id', '=', $order_id],
|
|
|
369
|
+ ['uid', '=', $spreadUid],
|
|
|
370
|
+ ], 'reward_socre');
|
|
374
|
371
|
// // // 删除所有相关积分记录
|
|
375
|
372
|
$this->backupAndDelete('user_sign_score', ['order_id' => $order_id]);
|
|
376
|
373
|
//// // 贡献值
|