-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eaf216f
commit 2432288
Showing
9 changed files
with
168 additions
and
14 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
package xinyi.com.czdevmodule; | ||
|
||
import android.graphics.Color; | ||
import android.os.Environment; | ||
import android.util.TypedValue; | ||
import android.view.Gravity; | ||
import android.view.View; | ||
|
||
import com.xinyi.czbasedevtool.base.bean.BaseHttpResponseBean; | ||
import com.xinyi.czbasedevtool.base.bean.UploadFileWrapper; | ||
import com.xinyi.czbasedevtool.base.main.DefaultBaseFragment; | ||
import com.xinyi.czbasedevtool.base.manager.DataCleanManager; | ||
import com.xinyi.czbasedevtool.base.utils.RegularUtil; | ||
import com.xinyi.czbasedevtool.base.manager.net_about.RetrofitClient; | ||
import com.xinyi.czbasedevtool.base.utils.ToastUtil; | ||
import com.xinyi.czbasedevtool.base.view.ContentViewHolder; | ||
import com.xinyi.czbasedevtool.base.view.round.RoundTextView; | ||
|
||
import java.io.File; | ||
import java.io.IOException; | ||
import java.util.HashMap; | ||
|
||
import xinyi.com.czdevmodule.net_test.retrofit.UserBean; | ||
import xinyi.com.czdevmodule.net_test.retrofit.action.UserAction; | ||
import xinyi.com.czdevmodule.net_test.retrofit.callback.IUserRegistCallBack; | ||
import xinyi.com.czdevmodule.net_test.retrofit.service.UserService; | ||
|
||
|
@@ -30,8 +35,6 @@ public boolean useDataBinding() { | |
return false; | ||
} | ||
|
||
|
||
|
||
@Override | ||
public int getLayoutID() { | ||
return R.layout.fragment1; | ||
|
@@ -64,7 +67,12 @@ public void bindView(ContentViewHolder contentViewHolder) throws IOException { | |
roundTextView.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v) { | ||
ToastUtil.shortT(mContext, "" + RegularUtil.isEmail("[email protected]")); | ||
RetrofitClient.setHasToken(true); | ||
RetrofitClient.setBaseUrl("http://app.bestbeijing.top/"); | ||
HashMap<String, String> map = new HashMap<>(); | ||
map.put("user_id","402"); | ||
UploadFileWrapper logo = new UploadFileWrapper(new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/123.jpg"), "logo"); | ||
uploadOneFileAndData(v,100,UserAction.class,"getOrSaveCompanyInfo",Object.class,map,logo,false); | ||
} | ||
}); | ||
|
||
|
@@ -91,7 +99,7 @@ public String getLeftTextString() { | |
|
||
@Override | ||
public <T> void onSuccess(int requestCode, BaseHttpResponseBean codeInfoBean, T successBean) { | ||
|
||
ToastUtil.shortT(mContext,"dsalfjas"); | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters