|
|
@@ -30,7 +30,10 @@ class IssueWorkLogic extends BaseLogic
|
|
|
{
|
|
|
Db::startTrans();
|
|
|
try {
|
|
|
- $order = RechargeOrder::where('sn',$params['sn'])->findOrEmpty()->toArray();
|
|
|
+ $order = RechargeOrder::where(['sn'=>$params['sn'],'user_id'=>$params['user_id']])->findOrEmpty()->toArray();
|
|
|
+ if(empty($order)){
|
|
|
+ throw new Exception('订单错误');
|
|
|
+ }
|
|
|
$work = ServiceWork::findOrEmpty($order['work_id']);
|
|
|
if($work['work_status']!=8){
|
|
|
throw new Exception('订单暂未结束,不允许投诉,请直接联系客服');
|