opt share upload
This commit is contained in:
@@ -114,7 +114,7 @@ import static com.mogo.module.tanlu.video.VideoInitKt.initVideo;
|
||||
* @description 探路卡片
|
||||
* @since 2020-01-02
|
||||
*/
|
||||
public class TanluCardViewFragment extends MvpFragment<IView, Presenter<IView>>
|
||||
public class TanluCardViewFragment extends MvpFragment<IView, Presenter<IView>>
|
||||
implements IView,
|
||||
IMogoMarkerClickListener,
|
||||
IMogoModuleLifecycle,
|
||||
@@ -966,12 +966,18 @@ public class TanluCardViewFragment extends MvpFragment<IView, Presenter<IView>>
|
||||
double lat = TanluServiceHandler.getLocationClient().getLastKnowLocation().getLatitude();
|
||||
double lon = TanluServiceHandler.getLocationClient().getLastKnowLocation().getLongitude();
|
||||
Log.d(TAG, "onMarkerInfo share onCompleted ---poiType =" + poiType);
|
||||
MogoMarkerOptions options = new MogoMarkerOptions()
|
||||
.icon(mMarkerIcon)
|
||||
.latitude(lat) //event.lat
|
||||
.owner("share_tag")
|
||||
.longitude(lon); //event.lon
|
||||
mMarkerManager.addMarker("share_tag", options); //随便传tag,不可点击 share_tag TanluConstants.MODEL_NAME
|
||||
if (!poiType.equals("-1")) {
|
||||
Log.d(TAG, "onMarkerInfo share onCompleted ---!poiType------->");
|
||||
MogoMarkerOptions options = new MogoMarkerOptions()
|
||||
.icon(mMarkerIcon)
|
||||
.latitude(lat) //event.lat
|
||||
.owner("share_tag")
|
||||
.longitude(lon); //event.lon
|
||||
mMarkerManager.addMarker("share_tag", options); //随便传tag,不可点击 share_tag TanluConstants.MODEL_NAME
|
||||
AIAssist.getInstance(getContext()).speakTTSVoice(getString(R.string.tanlu_share_success), null);
|
||||
} else {
|
||||
Log.d(TAG, "onMarkerInfo share onCompleted ---!poiType--- else ---->");
|
||||
}
|
||||
|
||||
//请求分享接口
|
||||
if (markerExploreWayList != null && markerExploreWayList.size() > 0) {
|
||||
@@ -1000,17 +1006,11 @@ public class TanluCardViewFragment extends MvpFragment<IView, Presenter<IView>>
|
||||
@Override
|
||||
public void onSuccess(BaseData data) {
|
||||
Log.d(TAG, "uploadShareInfo onSuccess -----> poiType = " + poiType);
|
||||
if (!poiType.equals("-1")) {
|
||||
AIAssist.getInstance(getContext()).speakTTSVoice(getString(R.string.tanlu_share_success), null);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFail(String message, int code) {
|
||||
Log.e(TAG, "uploadShareInfo onFail -----> poiType = " + poiType);
|
||||
if (!poiType.equals("-1")) {
|
||||
AIAssist.getInstance(getContext()).speakTTSVoice(getString(R.string.tanlu_share_failed), null);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user