Skip to content

Commit 977a45c

Browse files
committed
完善代码
1 parent 8940022 commit 977a45c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

app/src/main/java/com/flyjingfish/modulecommunication/MainActivity.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ class MainActivity : ComponentActivity() {
2828

2929
binding.btnGoUri.setOnClickListener {
3030
RouterInterceptManager.addIntercept(object :RouterIntercept{
31-
override fun onIntercept(proceed: InterceptPoint) {
32-
Log.e("onIntercept","--MainActivity--${proceed.path},params = ${proceed.paramsMap},byPath = ${proceed.byPath}")
33-
proceed.proceed()
31+
override fun onIntercept(point: InterceptPoint) {
32+
Log.e("onIntercept","--MainActivity--${point.path},params = ${point.paramsMap},byPath = ${point.byPath}")
33+
point.proceed()
3434
}
3535

3636
override fun order(): Int {

lib-login/src/main/java/com/flyjingfish/login/LoginIntercept.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import com.flyjingfish.module_communication_intercept.intercept.InterceptPoint
55
import com.flyjingfish.module_communication_intercept.intercept.RouterIntercept
66

77
class LoginIntercept : RouterIntercept {
8-
override fun onIntercept(proceed: InterceptPoint) {
9-
Log.e("onIntercept","--LoginIntercept--${proceed.path},params = ${proceed.paramsMap},byPath = ${proceed.byPath}")
10-
proceed.proceed()
8+
override fun onIntercept(point: InterceptPoint) {
9+
Log.e("onIntercept","--LoginIntercept--${point.path},params = ${point.paramsMap},byPath = ${point.byPath}")
10+
point.proceed()
1111
}
1212

1313
override fun order(): Int {

lib-user/src/main/java/com/flyjingfish/user/UserIntercept.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import com.flyjingfish.module_communication_intercept.intercept.InterceptPoint
55
import com.flyjingfish.module_communication_intercept.intercept.RouterIntercept
66

77
class UserIntercept : RouterIntercept {
8-
override fun onIntercept(proceed: InterceptPoint) {
9-
Log.e("onIntercept","--UserIntercept--${proceed.path},params = ${proceed.paramsMap},byPath = ${proceed.byPath}")
10-
proceed.proceed()
8+
override fun onIntercept(point: InterceptPoint) {
9+
Log.e("onIntercept","--UserIntercept--${point.path},params = ${point.paramsMap},byPath = ${point.byPath}")
10+
point.proceed()
1111
}
1212

1313
override fun order(): Int {

0 commit comments

Comments
 (0)