|
@@ -29,7 +29,7 @@ class Assoc extends Model
|
|
|
$order[$v['orderCode']]['ainv_fee']+=$v['cancel_fee'];
|
|
|
$order[$v['orderCode']]['invtime']=date("Y-m-d H:i:s");
|
|
|
$order[$v['orderCode']]['inv_status']= $order[$v['orderCode']]['winv_fee']==0 &&$order[$v['orderCode']]['inv_fee']==0 ? 3 : 2;
|
|
|
- $order[$v['orderCode']]['status']= $order[$v['orderCode']]['pay_status']==0 &&$order[$v['orderCode']]['inv_status']==0 ? 0 : 1;
|
|
|
+ $order[$v['orderCode']]['status']= $order[$v['orderCode']]['pay_status']==1 &&$order[$v['orderCode']]['inv_status']==1 ? 0 : 1;
|
|
|
}
|
|
|
}
|
|
|
(new QrdInfo())->saveAll($order);
|
|
@@ -51,7 +51,7 @@ class Assoc extends Model
|
|
|
$order[$v['orderCode']]['inv_fee']-=$v['cancel_fee'];
|
|
|
$order[$v['orderCode']]['winv_fee']+=$v['cancel_fee'];
|
|
|
$order[$v['orderCode']]['inv_status']= $order[$v['orderCode']]['ainv_fee']==0 &&$order[$v['orderCode']]['inv_fee']==0 ? 1 : 2;
|
|
|
- $order[$v['orderCode']]['status']= $order[$v['orderCode']]['pay_status']==0 &&$order[$v['orderCode']]['inv_status']==0 ? 0 : 1;
|
|
|
+ $order[$v['orderCode']]['status']= $order[$v['orderCode']]['pay_status']==1 &&$order[$v['orderCode']]['inv_status']==1 ? 0 : 1;
|
|
|
}
|
|
|
}
|
|
|
(new QrdInfo())->saveAll($order);
|
|
@@ -75,7 +75,7 @@ class Assoc extends Model
|
|
|
$order[$v['orderCode']]['ainv_fee']-=$v['cancel_fee'];
|
|
|
$order[$v['orderCode']]['winv_fee']+=$v['cancel_fee'];
|
|
|
$order[$v['orderCode']]['inv_status']= $order[$v['orderCode']]['ainv_fee']==0 &&$order[$v['orderCode']]['inv_fee']==0 ? 1 : 2;
|
|
|
- $order[$v['orderCode']]['status']= $order[$v['orderCode']]['pay_status']==0 &&$order[$v['orderCode']]['inv_status']==0 ? 0 : 1;
|
|
|
+ $order[$v['orderCode']]['status']= $order[$v['orderCode']]['pay_status']==1 &&$order[$v['orderCode']]['inv_status']==1 ? 0 : 1;
|
|
|
}
|
|
|
}
|
|
|
(new QrdInfo())->saveAll($order);
|