| 
														
															@@ -137,9 +137,8 @@ class Task extends Api 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         Db::startTrans(); 
														 | 
														
														 | 
														
															         Db::startTrans(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         try{ 
														 | 
														
														 | 
														
															         try{ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            // 增加用户经验值 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            //$res1 = \app\common\model\User::addEmpirical($this->auth->id,$taskInfo["exp"]); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            $res1 = model('wallet')->lockChangeAccountRemain($this->auth->id,'gold',$taskInfo["exp"],61,$taskInfo['name'],'task_log',$tasklogInfo); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            // 增加用户金币 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            $res1 = model('wallet')->lockChangeAccountRemain($this->auth->id,'gold',$taskInfo["exp"],61,$taskInfo['name'],'task_log',$tasklogInfo['id']); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if($res1['status'] === false){ 
														 | 
														
														 | 
														
															             if($res1['status'] === false){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 Db::rollback(); 
														 | 
														
														 | 
														
															                 Db::rollback(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 $this->error($res1['msg']); 
														 | 
														
														 | 
														
															                 $this->error($res1['msg']); 
														 |