Compare commits

..

No commits in common. "8f97b0c544844a96cb017b3b1e6a172cd9fa9748" and "3e49ee9489d6a28e345945860c7145de0948107a" have entirely different histories.

2 changed files with 11 additions and 31 deletions

View File

@ -108,11 +108,6 @@ struct BlindBoxView: View {
init(mediaType: BlindBoxMediaType) {
self.mediaType = mediaType
// First/Second
if mediaType == BlindBoxMediaType.all {
print("获取盲盒列表")
}
}
//
@ -855,27 +850,16 @@ struct BlindBoxView: View {
// MARK: -
#Preview {
BlindBoxView(mediaType: .all)
.onAppear {
// Preview使
#if DEBUG
if ProcessInfo.processInfo.environment["XCODE_RUNNING_FOR_PREVIEWS"] == "1" {
// Preview
let previewToken = "eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSJ9.eyJqdGkiOjczNzAwMTY5NzMzODE1NzA1NjAsImlkZW50aXR5IjoiNzM1MDQzOTY2MzExNjYxOTc3NyIsImV4cCI6MTc1Nzc1Mzc3NH0.tZ8p5sW4KX6HFoJpJN0e4VmJOAGhTrYD2yTwQwilKpufzqOAfXX4vpGYBurgBIcHj2KmXKX2PQMOeeAtvAypDA"
KeychainHelper.saveAccessToken(previewToken)
print("🔑 Preview token set for testing")
}
#endif
}
BlindBoxView(mediaType: .video)
}
// struct TransparentVideoPlayer: UIViewRepresentable {
// func makeUIView(context: Context) -> UIView {
// let view = UIView()
// view.backgroundColor = .clear
// view.isOpaque = false
// return view
// }
struct TransparentVideoPlayer: UIViewRepresentable {
func makeUIView(context: Context) -> UIView {
let view = UIView()
view.backgroundColor = .clear
view.isOpaque = false
return view
}
// func updateUIView(_ uiView: UIView, context: Context) {}
// }
func updateUIView(_ uiView: UIView, context: Context) {}
}

View File

@ -180,10 +180,6 @@ struct UserInfo: View {
if let userData = response.data {
self.userName = userData.username
}
//
//
Router.shared.navigate(to: .blindBox(mediaType: .image))
case .failure(let error):
@ -306,4 +302,4 @@ struct UserInfo_Previews: PreviewProvider {
static var previews: some View {
UserInfo()
}
}
}