作者 王智

xiugai

... ... @@ -17,7 +17,7 @@ class Update extends Api
/**
* 商城板块接口
* 改版接口
* @ApiTitle (token换UserId)
* @ApiSummary (token换UserId)
* @ApiMethod (POST)
... ... @@ -39,7 +39,7 @@ class Update extends Api
/**
* 商城板块接口
* 改版接口
* @ApiTitle (被邀请页)
* @ApiSummary (被邀请页)
* @ApiMethod (POST)
... ... @@ -65,4 +65,27 @@ class Update extends Api
}
$this->success('成功', ['Nickname' => $Info['nickname'], 'Avatar' => $Info['avatar']]);
}
/**
* 改版接口
* @ApiTitle (支付后分享内容)
* @ApiSummary (支付后分享内容)
* @ApiMethod (POST)
* @ApiRoute (/api/Update/AfterPayWindow)
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
* @ApiReturnParams (name="code", type="integer", required=true, sample="0")
* @ApiReturnParams (name="msg", type="string", required=true, sample="返回成功")
* @ApiReturn ({
'code':'1',
'msg':'返回成功',
})
*/
public function AfterPayWindow()
{
$UserId = $this->is_token($this->request->header());
$UserInfo = Db::name('user')->where('id', $UserId)->find();
$Info = Db::name('pay_miniappfriends')->find();
$this->success('成功', ['title' => '点击领取' . $UserInfo['nickname'] . '送你的' . $Info['title'], 'image' => cdnurl($Info['image']));
}
}
\ No newline at end of file
... ...