ezshine / wxapkg-convertor

一个反编译微信小程序的工具,仓库也收集各种微信小程序/小游戏.wxapkg文件
MIT License
1.35k stars 373 forks source link

fix(wuConfig): fix error caused by trimmed subPackage pages #34

Open HibernantBear opened 1 year ago

HibernantBear commented 1 year ago

修复了子包的pages缺失的时候无法解包的问题 这是app-config.json示例:

{
    "subPackages": [
        {
            "root": "packageA/"
        }
    ],
    "entryPagePath": "pages/index/index.html",
    "pages": [
        "pages/index/index",
        "pages/travel/travel",
        "pages/hotel/hotel",
        "pages/personnel/personnel",
        "pages/auth/index",
        "pages/calendar/index",
        "pages/ticketBooking/index",
        "pages/ticketBooking/order/index",
        "pages/personnel/contacts/contacts",
        "pages/personnel/contacts/addContacts/addContacts",
        "pages/payOrder/index",
        "pages/personnel/orderList/index",
        "pages/personnel/contacts/facialPhoto/facialPhoto",
        "pages/personnel/invoice/index",
        "pages/hotel/allHotel/index",
        "pages/travel/travelSearch/index",
        "pages/personnel/orderDetail/index",
        "pages/hotel/singleHotelDetail/index",
        "pages/personnel/orderDetail/visitorInfo/index",
        "pages/webView/mapNavigation/index",
        "pages/personnel/contacts/camera/index",
        "pages/personnel/onlineService/index",
        "pages/travel/allRoute/index",
        "pages/travel/allSpot/index",
        "pages/webView/singelTicketsDetail/index",
        "pages/webView/impressionDetail/index",
        "pages/webView/line/index",
        "pages/webView/advertisment/index",
        "pages/payOrder/payStatus/payStatus",
        "pages/payOrder/appPay/appPay",
        "pages/hotel/order/index",
        "pages/travel/order/index",
        "pages/travel/order2/index",
        "pages/webView/restaurant/index",
        "pages/webView/hotelAndintoLijiang/index",
        "pages/webView/like/index",
        "pages/travel/postMessages/index",
        "pages/personnel/orderComment/index",
        "pages/webView/getLocation/index",
        "pages/index/notice/index",
        "pages/index/noticeDetail/index",
        "pages/webView/aboutExceptions/index",
        "pages/travel/compactInfo/index",
        "pages/partyPolicy/index",
        "pages/partyPolicy/postMessages/index",
        "pages/partyPolicy/governmentHome/index",
        "pages/webView/governmentDetail/index",
        "pages/webView/governmentMyInfo/index",
        "pages/personnel/invoice/info/index",
        "pages/personnel/invoice/apply/index",
        "pages/personnel/myCoupon/myCoupon",
        "pages/personnel/moreCoupon/moreCoupon",
        "pages/personnel/couponProduct/couponProduct",
        "pages/webView/couponProductDetail/index",
        "pages/webView/verification/index",
        "pages/personnel/myDistribution/myDistribution",
        "pages/personnel/myDistribution/commission/commission",
        "pages/personnel/myDistribution/upgradeRules/upgradeRules",
        "pages/personnel/myDistribution/distributionAgreement/distributionAgreement",
        "pages/personnel/myDistribution/withdrawDeposit/withdrawDeposit",
        "pages/personnel/myDistribution/sharingRules/sharingRules",
        "pages/personnel/myDistribution/promotionGoods/promotionGoods",
        "pages/personnel/myDistribution/withdrawalRecord/withdrawalRecord",
        "pages/personnel/myDistribution/addBankCard/addBankCard",
        "pages/webView/ticketsDetail/index",
        "pages/personnel/myDistribution/acceptInvite/acceptInvite",
        "pages/webView/impressionShow/index",
        "pages/userReview/index",
        "pages/webView/shopLine/shop",
        "pages/webView/introduce/introduce",
        "pages/webView/productDetail/index",
        "pages/webView/link/link",
        "pages/phoneAuthorization/index",
        "pages/seckil/seckilList",
        "pages/index/intoLijiang/intoLijiang",
        "pages/guidelineDetails/index",
        "pages/index/intoLijiang/detail/detail",
        "pages/personnel/groupIntroduce/groupIntroduce",
        "pages/hotel/introduction/introduction",
        "pages/hotel/introduction/detail/detail",
        "pages/personnel/myCollection/index",
        "pages/personnel/myForward/index",
        "packageA/pages/food/index",
        "packageA/pages/food/list/list",
        "packageA/pages/food/detail/detail",
        "packageA/pages/merchandise/list",
        "packageA/pages/merchandise/address/index",
        "packageA/pages/merchandise/address/editAddress/editAddress",
        "packageA/pages/order/order",
        "packageA/pages/recreation/index",
        "packageA/pages/orderPay/index",
        "packageA/pages/moreList/index",
        "packageA/pages/editPersonalInfo/editPersonalInfo",
        "packageA/pages/personalInfo/editName/editName",
        "packageA/pages/myPublish/myPublish",
        "packageA/pages/platformRaiders/index",
        "packageA/pages/msgNotification/index",
        "packageA/pages/hotel/hotelIntroduce/hotelIntroduce",
        "packageA/pages/hotel/hotelDetail/index"
    ],
    // ...
}