| | |
| | | import com.google.gson.Gson; |
| | | import com.google.gson.GsonBuilder; |
| | | import com.google.gson.reflect.TypeToken; |
| | | import com.tejia.lijin.app.ShoppingApplication; |
| | | import com.tejia.lijin.app.util.user.UserUtil; |
| | | import com.wpc.library.util.common.StringUtils; |
| | | import com.tejia.lijin.app.BasicTextHttpResponseHandler; |
| | | import com.tejia.lijin.app.R; |
| | |
| | | private TextView tv_top_left, tv_top_middle, tv_mobile_num, tv_send, tv_count_down; |
| | | private EditText et_num; |
| | | private LinearLayout ll_code; |
| | | String uid; |
| | | Long uid; |
| | | |
| | | @Override |
| | | protected void onCreate(Bundle savedInstanceState) { |
| | |
| | | tv_top_left.setOnClickListener(this); |
| | | tv_send.setOnClickListener(this); |
| | | tv_count_down.setOnClickListener(this); |
| | | uid = getSharedPreferences("user", MODE_PRIVATE).getString("uid", "0"); |
| | | uid = UserUtil.getUid(ShoppingApplication.application); |
| | | getUserInfo(); |
| | | } |
| | | |
| | |
| | | pd = new ShapeLoadingDialog.Builder(this).build(); |
| | | } |
| | | pd.show(); |
| | | String uid = getSharedPreferences("user", MODE_PRIVATE).getString("uid", "0"); |
| | | ShoppingApi.sendSms(ReviseAccountActivity.this, uid, phone, 1 + "", new BasicTextHttpResponseHandler() { |
| | | ShoppingApi.sendSms(ReviseAccountActivity.this, UserUtil.getUid(ShoppingApplication.application), phone, 1 + "", new BasicTextHttpResponseHandler() { |
| | | @Override |
| | | public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { |
| | | if (jsonObject.optString("code").equalsIgnoreCase("0")) { |
| | |
| | | |
| | | private void extractMoneyNew(String code) { |
| | | String money = getIntent().getStringExtra("money"); |
| | | String uid = getSharedPreferences("user", MODE_PRIVATE).getString("uid", "0"); |
| | | ShoppingApi.extractmoneynew(ReviseAccountActivity.this, money, uid, code, "1", new BasicTextHttpResponseHandler() { |
| | | ShoppingApi.extractmoneynew(ReviseAccountActivity.this, money, UserUtil.getUid(ShoppingApplication.application), code, "1", new BasicTextHttpResponseHandler() { |
| | | @Override |
| | | public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { |
| | | if (jsonObject.optString("code").equalsIgnoreCase("0")) { |