|
|
@@ -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())]);
|
|
|
}
|
|
|
|
|
|
/** 新增消费数据 */
|