Explorar el Código

Merge branch 'dev-xpy' into dev

xupuyuan hace 11 meses
padre
commit
def874aabd
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/controller/api/Auth.php

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

@@ -589,7 +589,7 @@ class Auth extends BaseController
589 589
         //给推荐人下级+1
590 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 594
         Cache::zincrby('s_top_' . date('Y-m'), 1, $spreadUid);
595 595
         Cache::zincrby('s_top_' . monday(), 1, $spreadUid);
@@ -1978,7 +1978,7 @@ class Auth extends BaseController
1978 1978
         $ins_data['addtime'] = time();
1979 1979
         $ins_data['status'] = $status;
1980 1980
         $ins_data['mark'] = $mark;
1981
-        $ins_data['type'] = $type;
1981
+        $ins_data['source_type'] = $type;
1982 1982
         $ins_data['settlement_time'] = $settlement_time;// 结算时间 真正到了结算时间会结算
1983 1983
         $ins_data['order_id'] = $order_id;
1984 1984
         $ins_data['pm'] = $pm;