作者 王智

文档修改

... ... @@ -44,7 +44,8 @@ class GuanYiCloud extends Api
$data['code'] = $code;
$data['sign'] = $this->sign($data, SECRET);
$Rult = json_decode(json_encode(json_decode($this->mycurl(URL, $data))), true);
return $Rult['total'];
// return $Rult['total'];
return $Rult;
}
// 会员新增
... ...
... ... @@ -131,6 +131,13 @@ class User extends Api
$this->success('成功', $return);
}
public function ceshi()
{
$GuanYiCloud = new GuanYiCloud();
$bool = $GuanYiCloud->getvip('oMRWOwVjcIuwpOW1XL4jIn7ngWfU');
dump($bool);
}
/**
* 用户接口
* @ApiTitle (绑定手机号)
... ... @@ -525,7 +532,7 @@ class User extends Api
$params = $this->request->param();
$IsInvite1 = Db::name('group')->where('user_id', $UserId)->find();
// $IsInvite2 = Db::name('group')->where('fuser_id', $UserId)->find();
if ($UserId != $params['user_id']&&empty($IsInvite1)) {
if ($UserId != $params['user_id'] && empty($IsInvite1)) {
//添加绑定关系
$IsInvite = Db::name('group')->where('user_id', $UserId)->where('fuser_id', $params['user_id'])->find();
if (!empty($IsInvite)) {
... ...