text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[13],{JG5q:function(e,t,a){"use strict";var n=a("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(a("MVZn")),c=n(a("o0o1")),u=(a("7DNP"),a("YLDS")),o={namespace:"redpacketchange",state:{data:{}},effects:{fetch:c.default.mark(function e(t,a){var n,r,o,s;return c.default.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.payload,r=a.call,o=a.put,console.log("redpacketchange model\uff1a"+n.id),e.next=5,r(u.getRedpacket,n);case 5:return s=e.sent,e.next=8,o({type:"save",payload:s});case 8:return e.abrupt("return",s);case 9:case"end":return e.stop()}},e)}),change:c.default.mark(function e(t,a){var n,r,o;return c.default.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.payload,r=a.call,e.prev=2,console.log(n),e.next=6,r(u.changeRedpacket,n);case 6:return o=e.sent,e.abrupt("return",o);case 10:return e.prev=10,e.t0=e["catch"](2),console.log(e.t0),e.abrupt("return",{code:-2});case 14:case"end":return e.stop()}},e,null,[[2,10]])})},reducers:{save:function(e,t){return(0,r.default)({},e,{data:t.payload})}}};t.default=o}}]);