Commit b4cbb68e authored by DavidHuang's avatar DavidHuang

添加一处测试代码

parent 19537846
......@@ -34,6 +34,8 @@ enum YHPersonalModuleItemType: Int {
case userItems//用户条款
case privaceAgreement//隐私协议
case myOrder //我的订单 双十一订单入口
case liveEntryTest //直播入口
}
class PersonalModuleItem {
......@@ -106,8 +108,7 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
// let url = "https://pull-flv-l11.douyincdn.com/thirdgame/stream-116296425803875148.flv?expire=1733558990&sign=cc69d0ac884efe3613385140611c1702&major_anchor_level=common&abr_pts=-800&_session_id=037-2024113016095034A5715FA5656D873A69.1732954190959.73911&rsi=1"
// YHPlayerManager.shared.enterLive(from: nil, id: 23, url: url)
// let vc = YHSimpleAudienceVC()
// self.navigationController?.pushViewController(vc) // for test
}
view.evaluateBlock = {
......@@ -325,9 +326,20 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
}
if YHUatHelper.shared.getUatModuleStatusBy(module: .Mine_AboutUS) == 1 {
let item = PersonalModuleItem(icon: "mine_item_about_us", title: "关于我们".local, type:. aboutUs)
let item = PersonalModuleItem(icon: "mine_item_about_us", title: "关于我们".local, type: .aboutUs)
items.append(item)
}
let item = PersonalModuleItem(icon: "mine_item_about_us", title: "直播测试入口".local, type: .liveEntryTest)
items.append(item)
tableView.reloadData()
}
}
......@@ -350,10 +362,6 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
// let vc = YHIMTestViewController()
// self.navigationController?.pushViewController(vc)
// return //for test hjl
if (indexPath.row >= items.count) { return }
if !checkLogin() {
......@@ -431,6 +439,9 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
vc.isSupportWebviewInterBackFlag = true
UIViewController.current?.navigationController?.pushViewController(vc)
}
case .liveEntryTest:
let vc = YHSimpleAudienceVC()
self.navigationController?.pushViewController(vc) //for test hjl
default:
printLog("不需要响应")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment