Showing
1 changed file
with
10 additions
and
1 deletions
| @@ -60,7 +60,15 @@ function rpc(host='',act,data={},fouce=false,header={},silence=true,cachetime=0, | @@ -60,7 +60,15 @@ function rpc(host='',act,data={},fouce=false,header={},silence=true,cachetime=0, | ||
| 60 | if(formids){ | 60 | if(formids){ |
| 61 | wx.removeStorage({key:'formids'}); | 61 | wx.removeStorage({key:'formids'}); |
| 62 | } | 62 | } |
| 63 | - | 63 | + let enter_params = wx.getStorageSync('enter_params'); |
| 64 | + let operator='' | ||
| 65 | + if(enter_params){ | ||
| 66 | + operator=JSON.stringify({ | ||
| 67 | + uid:enter_params.manager_id, | ||
| 68 | + openid: enter_params.seller_openid, | ||
| 69 | + sid:enter_params.seller_id, | ||
| 70 | + }) | ||
| 71 | + } | ||
| 64 | wx.request({ | 72 | wx.request({ |
| 65 | url: host+act, | 73 | url: host+act, |
| 66 | method: 'POST', | 74 | method: 'POST', |
| @@ -69,6 +77,7 @@ function rpc(host='',act,data={},fouce=false,header={},silence=true,cachetime=0, | @@ -69,6 +77,7 @@ function rpc(host='',act,data={},fouce=false,header={},silence=true,cachetime=0, | ||
| 69 | ...header, | 77 | ...header, |
| 70 | openid:openid, | 78 | openid:openid, |
| 71 | formids:formids.toString(), | 79 | formids:formids.toString(), |
| 80 | + operator:operator, | ||
| 72 | 'content-type': 'application/x-www-form-urlencoded' | 81 | 'content-type': 'application/x-www-form-urlencoded' |
| 73 | }, | 82 | }, |
| 74 | success: function (res) { | 83 | success: function (res) { |
-
Please register or login to post a comment