作者 lihan
1 个管道 的构建 通过 耗费 2 秒

赠送积分和角色管理

@@ -196,7 +196,7 @@ class FriendController extends HomeBaseController @@ -196,7 +196,7 @@ class FriendController extends HomeBaseController
196 if ($step == 'enter') { 196 if ($step == 'enter') {
197 session('user.pwd', $integral_pwd); 197 session('user.pwd', $integral_pwd);
198 if (session('user.pwd')) { 198 if (session('user.pwd')) {
199 - $this->success(session('user.pwd'), url('friendship/Friend/surePassword'), true); 199 + $this->success('', url('friendship/Friend/surePassword'), true);
200 } 200 }
201 } elseif ($step == 'sure') { 201 } elseif ($step == 'sure') {
202 if ($integral_pwd == session('user.pwd')) { 202 if ($integral_pwd == session('user.pwd')) {
@@ -207,12 +207,12 @@ class FriendController extends HomeBaseController @@ -207,12 +207,12 @@ class FriendController extends HomeBaseController
207 if (Db::name('user')->update($data)) { 207 if (Db::name('user')->update($data)) {
208 session('user.pwd', null); 208 session('user.pwd', null);
209 $this->success('修改成功', url('user/center/myBalance'), true); 209 $this->success('修改成功', url('user/center/myBalance'), true);
210 - }else { 210 + } else {
211 session('user.pwd', null); 211 session('user.pwd', null);
212 $this->success('您未作出任何修改', url('user/center/myBalance'), true); 212 $this->success('您未作出任何修改', url('user/center/myBalance'), true);
213 } 213 }
214 } else { 214 } else {
215 - $this->success($integral_pwd, '', false); 215 + $this->success('密码不一致', '', false);
216 } 216 }
217 } else { 217 } else {
218 $this->success('未知错误', '', false); 218 $this->success('未知错误', '', false);
@@ -155,7 +155,6 @@ @@ -155,7 +155,6 @@
155 dataType: "JSON", 155 dataType: "JSON",
156 156
157 success: function (data) { 157 success: function (data) {
158 - alert(data.msg);  
159 if (data.data === true) { 158 if (data.data === true) {
160 window.location.href = data.url 159 window.location.href = data.url
161 } 160 }
@@ -128,7 +128,7 @@ @@ -128,7 +128,7 @@
128 t.onkeyup=function(){ 128 t.onkeyup=function(){
129 arr.push($(this).val()) 129 arr.push($(this).val())
130 console.log(arr); 130 console.log(arr);
131 - var str=arr[0]+arr[1]+arr[2]+arr[3]+arr[4]+arr[5]; 131 + str=arr[0]+arr[1]+arr[2]+arr[3]+arr[4]+arr[5];
132 console.log(str) 132 console.log(str)
133 } 133 }
134 } 134 }
@@ -148,7 +148,6 @@ @@ -148,7 +148,6 @@
148 dataType: "JSON", 148 dataType: "JSON",
149 149
150 success: function (data) { 150 success: function (data) {
151 - alert(data.msg);  
152 if (data.data === true) { 151 if (data.data === true) {
153 window.location.href = data.url 152 window.location.href = data.url
154 } 153 }