Sfoglia il codice sorgente

添加 userinfo信息

hehaiqiang 1 anno fa
parent
commit
4924e62ea4
1 ha cambiato i file con 11 aggiunte e 2 eliminazioni
  1. 11 2
      app/controller/api/Auth.php

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

@@ -654,7 +654,7 @@ echo '导入成功';
654
     public function userInfo()
654
     public function userInfo()
655
     {
655
     {
656
         $user = $this->request->userInfo()
656
         $user = $this->request->userInfo()
657
-            ->hidden(['account','label_id', 'group_id', 'pwd', 'card_id', 'last_time', 'last_ip', 'status', 'spread_time', 'real_name', 'brokerage_price']);
657
+            ->hidden(['account','label_id', 'group_id', 'pwd', 'card_id', 'last_time', 'last_ip', 'status', 'spread_time', 'real_name']);
658
         $user->append(['service', 'total_consume', 'total_collect_product', 'total_collect_store', 'total_coupon', 'total_visit_product', 'total_unread']);     
658
         $user->append(['service', 'total_consume', 'total_collect_product', 'total_collect_store', 'total_coupon', 'total_visit_product', 'total_unread']);     
659
 $data=$user->toArray();
659
 $data=$user->toArray();
660
 
660
 
@@ -718,8 +718,17 @@ $data=$user->toArray();
718
 //        $area_manage_type=Db::name('area_manage')->where('uid', $user["uid"])->value('type');
718
 //        $area_manage_type=Db::name('area_manage')->where('uid', $user["uid"])->value('type');
719
         //类型 district-区/县代 city-市代',
719
         //类型 district-区/县代 city-市代',
720
 //        $data['area_manage_type']=$area_manage_type??'';
720
 //        $data['area_manage_type']=$area_manage_type??'';
721
-        $data['member_brokerage_price']=set_price_rtrim($data['member_brokerage_price']);
721
+//        $data['member_brokerage_price']=set_price_rtrim($data['member_brokerage_price']);
722
+        //积分
722
         $data['score']=set_price_rtrim($data['score']);
723
         $data['score']=set_price_rtrim($data['score']);
724
+        //2025新增 贡献值,红包,京东,vr,复购金
725
+        $date['contribute']=set_price_rtrim($data['contribute']);//贡献值
726
+        $data['repurchase_price']=set_price_rtrim($data['repurchase_price']);//复购余额
727
+        $data['jingdou']=set_price_rtrim($data['jingdou']);//京豆
728
+        $data['vr']=set_price_rtrim($data['vr']);//购物金
729
+        $data['hongbao']=set_price_rtrim($data['hongbao']);//红包
730
+        $data['brokerage_price']=set_price_rtrim($data['brokerage_price']);
731
+        $data['isOld']=($data['is_old']);//
723
         $data['exchange']=0;
732
         $data['exchange']=0;
724
         $data['withdraw']=0;
733
         $data['withdraw']=0;
725
         if($this->source=='yhc'){
734
         if($this->source=='yhc'){