|
@@ -66,7 +66,6 @@ class StorePercentageRepository extends BaseRepository
|
|
|
}
|
|
|
$order_repository = app()->make(StoreOrderRepository::class);
|
|
|
$order_info = $order_repository->get($order_id);
|
|
|
- var_dump($order_info);exit();
|
|
|
$order_status = $order_info->status;
|
|
|
if(!in_array($order_status,[0,1,4])){
|
|
|
return false;
|
|
@@ -75,7 +74,7 @@ class StorePercentageRepository extends BaseRepository
|
|
|
if($residue_percentage <= 0 && $order_status == 4){
|
|
|
$order_status = 0;
|
|
|
}
|
|
|
- $order_epository->update($order_id,array('residue_percentage'=>$residue_percentage,'status'=>$order_status));
|
|
|
+ $order_repository->update($order_id,array('residue_percentage'=>$residue_percentage,'status'=>$order_status));
|
|
|
$percentage_data = array(
|
|
|
'user_id' => $order_info->uid,
|
|
|
'deduction_num' => $deduction_num,
|