From 76e22221a628f7df62fb7b6ebaaf9315fa04e7ba Mon Sep 17 00:00:00 2001
From: 无故事王国 <841720330@qq.com>
Date: 星期一, 20 十一月 2023 11:41:28 +0800
Subject: [PATCH] 修复BUG

---
 WanPai/Root/Course/VC/CourseInfoVC.swift |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/WanPai/Root/Course/VC/CourseInfoVC.swift b/WanPai/Root/Course/VC/CourseInfoVC.swift
index 6fff952..5e9ef41 100644
--- a/WanPai/Root/Course/VC/CourseInfoVC.swift
+++ b/WanPai/Root/Course/VC/CourseInfoVC.swift
@@ -390,9 +390,8 @@
 
 	@objc func localDetailAction(btn:UIButton){
 		let index = btn.tag - 10
-		if (weeklyCourseModel?.data[index]) != nil{
-			JQ_MapNavigationTool.startNav(CLLocationCoordinate2D(latitude: weeklyCourseModel!.lat, longitude: weeklyCourseModel!.lon), distanceName: weeklyCourseModel?.name ?? "未命名地址", scheme: "weparklife")
-		}
+		guard let m = weeklyCourseModel else {return}
+			JQ_MapNavigationTool.startNav(CLLocationCoordinate2D(latitude: m.lat, longitude: m.lon), distanceName: m.name, scheme: "weparklife")
 	}
 }
 

--
Gitblit v1.7.1