Procházet zdrojové kódy

Merge branch 'dev-xpy' into dev

xupuyuan před 11 měsíci
rodič
revize
def874aabd
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      app/controller/api/Auth.php

+ 2 - 2
app/controller/api/Auth.php

@@ -589,7 +589,7 @@ class Auth extends BaseController
589
         //给推荐人下级+1
589
         //给推荐人下级+1
590
         Db::name('user')->where('uid', $spreadUid)->update(['spread_count' => Db::raw('spread_count + 1')]);
590
         Db::name('user')->where('uid', $spreadUid)->update(['spread_count' => Db::raw('spread_count + 1')]);
591
 
591
 
592
-        $this->sign_add($spreadUid, 30,1,'邀请好友注册奖励积分','','', '', 1, '', 1);
592
+        $this->sign_add($spreadUid, 30,1,'邀请好友注册奖励积分','','', '', 1, '', 2);
593
 
593
 
594
         Cache::zincrby('s_top_' . date('Y-m'), 1, $spreadUid);
594
         Cache::zincrby('s_top_' . date('Y-m'), 1, $spreadUid);
595
         Cache::zincrby('s_top_' . monday(), 1, $spreadUid);
595
         Cache::zincrby('s_top_' . monday(), 1, $spreadUid);
@@ -1978,7 +1978,7 @@ class Auth extends BaseController
1978
         $ins_data['addtime'] = time();
1978
         $ins_data['addtime'] = time();
1979
         $ins_data['status'] = $status;
1979
         $ins_data['status'] = $status;
1980
         $ins_data['mark'] = $mark;
1980
         $ins_data['mark'] = $mark;
1981
-        $ins_data['type'] = $type;
1981
+        $ins_data['source_type'] = $type;
1982
         $ins_data['settlement_time'] = $settlement_time;// 结算时间 真正到了结算时间会结算
1982
         $ins_data['settlement_time'] = $settlement_time;// 结算时间 真正到了结算时间会结算
1983
         $ins_data['order_id'] = $order_id;
1983
         $ins_data['order_id'] = $order_id;
1984
         $ins_data['pm'] = $pm;
1984
         $ins_data['pm'] = $pm;