mac 5 hodín pred
rodič
commit
225e954aa7
1 zmenil súbory, kde vykonal 15 pridanie a 3 odobranie
  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())]);
             }
 
             /** 新增消费数据 */