作者 何书鹏

邀请人id

@@ -567,7 +567,8 @@ class User extends Api @@ -567,7 +567,8 @@ class User extends Api
567 }, 567 },
568 "createtime_text": "" 568 "createtime_text": ""
569 } 569 }
570 - ] 570 + ],
  571 + "invite_id": 1, 邀请人id
571 }) 572 })
572 */ 573 */
573 public function inviteReward() 574 public function inviteReward()
@@ -584,6 +585,7 @@ class User extends Api @@ -584,6 +585,7 @@ class User extends Api
584 foreach ($coupon['user_list'] as $key => $value){ 585 foreach ($coupon['user_list'] as $key => $value){
585 $value->visible(['nickname']); 586 $value->visible(['nickname']);
586 } 587 }
  588 + $coupon['invite_id'] = $this->auth->id;
587 $this->success('邀请有奖',$coupon); 589 $this->success('邀请有奖',$coupon);
588 } 590 }
589 591