作者 刘朕
1 个管道 的构建 通过 耗费 0 秒

合并分支 'Branch_liuzhen' 到 'master'

Branch liuzhen



查看合并请求 !175
@@ -94,12 +94,12 @@ class HouseAdmin extends Backend @@ -94,12 +94,12 @@ class HouseAdmin extends Backend
94 } 94 }
95 $result = $this->model->allowField(true)->save($params); 95 $result = $this->model->allowField(true)->save($params);
96 96
97 -// $house_admin_id = $this->model->getLastInsID();  
98 -//  
99 -// $data = Db::name('house_admin')->where('id',$house_admin_id)->find();  
100 -// if(!empty($data['user_id'])){  
101 -// Db::name('user')->where('id',$data['user_id'])->update(['identity'=>1]);  
102 -// } 97 + $house_admin_id = $this->model->getLastInsID();
  98 +
  99 + $data = Db::name('house_admin')->where('id',$house_admin_id)->find();
  100 + if(!empty($data['user_id'])){
  101 + Db::name('user')->where('id',$data['user_id'])->update(['identity'=>1]);
  102 + }
103 103
104 Db::commit(); 104 Db::commit();
105 } catch (ValidateException $e) { 105 } catch (ValidateException $e) {
@@ -714,6 +714,7 @@ class User extends Api @@ -714,6 +714,7 @@ class User extends Api
714 $list = UserMoneyLog::where($where) 714 $list = UserMoneyLog::where($where)
715 ->field("memo,money,from_unixtime(createtime, '%Y-%m-%d %H:%i:%S') createtime") 715 ->field("memo,money,from_unixtime(createtime, '%Y-%m-%d %H:%i:%S') createtime")
716 ->page($page,$pageNum) 716 ->page($page,$pageNum)
  717 + ->order('createtime','DESC')
717 ->select(); 718 ->select();
718 $this->success('成功',compact('total_num','list')); 719 $this->success('成功',compact('total_num','list'));
719 } 720 }
@@ -274,7 +274,7 @@ class Ajax extends Frontend @@ -274,7 +274,7 @@ class Ajax extends Frontend
274 public function refund_notify() { 274 public function refund_notify() {
275 $app = new Application(ConfigService::load()); 275 $app = new Application(ConfigService::load());
276 $response = $app->payment->handleRefundNotify(function ($message, $reqInfo) { 276 $response = $app->payment->handleRefundNotify(function ($message, $reqInfo) {
277 - Log::write(date('Y-m-d H:i') . '订单退款操作,返回数据:' . json_encode($message, JSON_UNESCAPED_UNICODE), 'notice'); 277 +// Log::write(date('Y-m-d H:i') . '订单退款操作,返回数据:' . json_encode($message, JSON_UNESCAPED_UNICODE), 'notice');
278 // 其中 $message['req_info'] 获取到的是加密解密信息 278 // 其中 $message['req_info'] 获取到的是加密解密信息
279 // $reqInfo 成功时为1 279 // $reqInfo 成功时为1
280 // 你的业务逻辑... 280 // 你的业务逻辑...
@@ -285,7 +285,7 @@ class Ajax extends Frontend @@ -285,7 +285,7 @@ class Ajax extends Frontend
285 'out_refund_no' => $message['req_info']['out_refund_no'] 285 'out_refund_no' => $message['req_info']['out_refund_no']
286 ]; 286 ];
287 $refund = Db::name('Refund')->where($refund_where)->find(); 287 $refund = Db::name('Refund')->where($refund_where)->find();
288 - Log::write(date('Y-m-d H:i') . '订单退款操作1,返回数据:' . json_encode($refund, JSON_UNESCAPED_UNICODE), 'notice'); 288 +// Log::write(date('Y-m-d H:i') . '订单退款操作1,返回数据:' . json_encode($refund, JSON_UNESCAPED_UNICODE), 'notice');
289 if($refund['status'] == 1) { 289 if($refund['status'] == 1) {
290 return true; 290 return true;
291 } else { 291 } else {
@@ -325,7 +325,7 @@ class Ajax extends Frontend @@ -325,7 +325,7 @@ class Ajax extends Frontend
325 } elseif($message['req_info']['refund_status'] == 'REFUNDCLOSE') { 325 } elseif($message['req_info']['refund_status'] == 'REFUNDCLOSE') {
326 $update['status'] = 3; 326 $update['status'] = 3;
327 } 327 }
328 - Log::write(date('Y-m-d H:i') . '订单退款操作3,返回数据:' . json_encode($refund_where, JSON_UNESCAPED_UNICODE), 'notice'); 328 +// Log::write(date('Y-m-d H:i') . '订单退款操作3,返回数据:' . json_encode($refund_where, JSON_UNESCAPED_UNICODE), 'notice');
329 $result = Db::name('Refund')->where($refund_where)->update($update); 329 $result = Db::name('Refund')->where($refund_where)->update($update);
330 if(!$result || !$ask_order_result) { 330 if(!$result || !$ask_order_result) {
331 Log::write(date('Y-m-d H:i') . '订单退款操作5,返回数据:' . json_encode([$result,$ask_order_result], JSON_UNESCAPED_UNICODE), 'notice'); 331 Log::write(date('Y-m-d H:i') . '订单退款操作5,返回数据:' . json_encode([$result,$ask_order_result], JSON_UNESCAPED_UNICODE), 'notice');