|
@@ -86,6 +86,7 @@ public class ActPayPassword extends BaseContainerActivity {
|
|
|
|
|
|
|
|
public static void setPwd(Context context) {
|
|
public static void setPwd(Context context) {
|
|
|
CommonUtil.getInstance().getUserInfo(SpUtils.getToken(context), (user) -> {
|
|
CommonUtil.getInstance().getUserInfo(SpUtils.getToken(context), (user) -> {
|
|
|
|
|
+ if (user == null) return;
|
|
|
Intent in = new Intent(context, ActPayPassword.class);
|
|
Intent in = new Intent(context, ActPayPassword.class);
|
|
|
if (TextUtils.isEmpty(user.getMobile())) {
|
|
if (TextUtils.isEmpty(user.getMobile())) {
|
|
|
in.putExtra("action", ACTION_COMPLETION);
|
|
in.putExtra("action", ACTION_COMPLETION);
|
|
@@ -102,7 +103,7 @@ public class ActPayPassword extends BaseContainerActivity {
|
|
|
|
|
|
|
|
public static void verifyPwd(Activity activity, String token, String ext, PayPasswordCallback callback) {
|
|
public static void verifyPwd(Activity activity, String token, String ext, PayPasswordCallback callback) {
|
|
|
CommonUtil.getInstance().getUserInfo(token, (user) -> {
|
|
CommonUtil.getInstance().getUserInfo(token, (user) -> {
|
|
|
- if (user.hasPayPwd()) {
|
|
|
|
|
|
|
+ if (user != null && user.hasPayPwd()) {
|
|
|
Intent in = new Intent(activity, ActPayPassword.class);
|
|
Intent in = new Intent(activity, ActPayPassword.class);
|
|
|
in.putExtra("action", ACTION_VERIFY_PAY_PWD);
|
|
in.putExtra("action", ACTION_VERIFY_PAY_PWD);
|
|
|
in.putExtra("token", token);
|
|
in.putExtra("token", token);
|