mac 3 시간 전
부모
커밋
225e954aa7
1개의 변경된 파일15개의 추가작업 그리고 3개의 파일을 삭제
  1. 15 3
      app/business/PayorderBusiness.php

+ 15 - 3
app/business/PayorderBusiness.php

@@ -804,11 +804,23 @@ class PayorderBusiness
             }elseif ($goodsData->type == 20) {
 
             }elseif ($goodsData->type == 21) {
-
+                Db::table('wa_withdraw')
+                    ->where('user_id', $data['user_id'])
+                    ->where('type',22)
+                    ->where('status','<',3)
+                    ->update(['status' => 3, 'updated_at' => date('Y-m-d H:i:s', time())]);
             }elseif ($goodsData->type == 22) {
-
+                Db::table('wa_withdraw')
+                    ->where('user_id', $data['user_id'])
+                    ->where('type',10)
+                    ->where('status','<',3)
+                    ->update(['status' => 3, 'updated_at' => date('Y-m-d H:i:s', time())]);
             }elseif ($goodsData->type == 23) {
-
+                Db::table('wa_withdraw')
+                    ->where('user_id', $data['user_id'])
+                    ->where('type',23)
+                    ->where('status','<',3)
+                    ->update(['status' => 3, 'updated_at' => date('Y-m-d H:i:s', time())]);
             }
 
             /** 新增消费数据 */