function hookWxMethod(){var e,_=wx._MINI_WX_PROXY_||wx;_.$_origin_$?e=_.$_origin_$:(e=_.$_method_$,Object.defineProperty(_,"$_origin_$",{configurable:!0,get:()=>e})),Object.defineProperty(_,"$_method_$",{configurable:!0,get:()=>function(..._){var t,n=_[0],$=!1;if("$_method_$".endsWith("Sync")||n&&(n.success||n.fail||n.complete)||($=!0),"undefined"!=typeof $_before_$&&$_before_$(..._),"undefined"!=typeof $_callback_$)if($)t=e(..._).then((function(e){return $_callback_$(e),e})).catch((function(e){throw $_callback_$(e),e}));else{if(n){var o=n.complete;n.complete=function(e){$_callback_$(e),o&&o(e)}}t=e(..._)}else t=e(..._);return"undefined"!=typeof $_after_$&&$_after_$(t),t}})}
