|
@@ -42,7 +42,7 @@ public class ApiUserServiceImpl extends BaseService implements ApiUserService {
|
|
|
String userId = "";
|
|
|
if (object != null) {
|
|
|
JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(object));
|
|
|
- if (!param.getAppSecret().equals(jsonObject.get("appSecret")) || !jsonObject.get("status").equals("1")) {
|
|
|
+ if (!param.getAppSecret().equals(jsonObject.get("appSecret")) || jsonObject.get("status") == null || !jsonObject.get("status").equals("1")) {
|
|
|
availableUser = validateUser(param.getAppKey(), param.getAppSecret(), userId);
|
|
|
} else {
|
|
|
userId = jsonObject.get("userId").toString();
|