...
|
...
|
@@ -59,6 +59,9 @@ class User extends Api |
|
|
$Json = $miniProgram->encryptor->decryptData($sessionKey['session_key'], urldecode($params['iv']), urldecode($params['encryptData']));
|
|
|
$is_open = Db::name('user')->where(['UnionID' => $Json['unionId']])->find();
|
|
|
if (empty($is_open)) {
|
|
|
/*新增会员到管易平台*/
|
|
|
$GuanYiCloud = new GuanYiCloud();
|
|
|
$GuanYiCloud->addVip($Json['unionId'], $Json['nickName']);
|
|
|
$dataUser = [
|
|
|
'UnionID' => $Json['unionId'],
|
|
|
'updatetime' => time(),
|
...
|
...
|
@@ -74,9 +77,6 @@ class User extends Api |
|
|
'openid' => $Json['openId']
|
|
|
];
|
|
|
Db::name('user')->insert($dataUser);
|
|
|
/*新增会员到管易平台*/
|
|
|
$GuanYiCloud = new GuanYiCloud();
|
|
|
$GuanYiCloud->addVip($Json['unionId'], $Json['nickName']);
|
|
|
}
|
|
|
$token = $this->request->token();
|
|
|
$arr = [
|
...
|
...
|
|