|
@@ -439,6 +439,7 @@ Class Manage
|
|
|
}
|
|
|
|
|
|
public function common($data,$type,$num=false,$refund_id=false){
|
|
|
+ Dever::config('base')->hook = true;
|
|
|
$active = Dever::db('active/info')->find($data['active_id']);
|
|
|
$info = Dever::db('active/info_refund')->state(array('order_id'=>$data['id']));
|
|
|
if (time() > $active['act_start']) {
|
|
@@ -497,10 +498,10 @@ Class Manage
|
|
|
}
|
|
|
$where['refund_num'] = $refund_num + $data['refund_num'];
|
|
|
|
|
|
- if ($type == 1 || ($type == 2 && $price = $data['price'])) {
|
|
|
+ if ($type == 1 || ($price == $data['price'])) {
|
|
|
Dever::db('active/order')->update($where);
|
|
|
- } elseif (($type == 2 && $price != $data['price']) || $type == 3) {
|
|
|
- $where['status'] = 5;
|
|
|
+ } else {
|
|
|
+ $where['status'] = 2;
|
|
|
$ids = Dever::db('active/order')->update($where);
|
|
|
}
|
|
|
if ($type == 2) {
|