You've already forked guangan
审核回调
This commit is contained in:
@ -91,6 +91,14 @@ class Approval extends Auth
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ($instance->status === 1) {
|
||||||
|
// 工单通过
|
||||||
|
if ($instance->type === "YSSH") {
|
||||||
|
// 验收通过
|
||||||
|
$instance->ticket->is_finished = 1;
|
||||||
|
$instance->ticket->save();
|
||||||
|
}
|
||||||
|
}
|
||||||
$instance->save();
|
$instance->save();
|
||||||
Model::mk()->commit();
|
Model::mk()->commit();
|
||||||
} catch (HttpResponseException $e) {
|
} catch (HttpResponseException $e) {
|
||||||
|
@ -166,6 +166,14 @@ class ApprovalInstance extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ($instance->status === 1) {
|
||||||
|
// 工单通过
|
||||||
|
if ($instance->type === "YSSH") {
|
||||||
|
// 验收通过
|
||||||
|
$instance->ticket->is_finished = 1;
|
||||||
|
$instance->ticket->save();
|
||||||
|
}
|
||||||
|
}
|
||||||
$instance->save();
|
$instance->save();
|
||||||
Model::mk()->commit();
|
Model::mk()->commit();
|
||||||
} catch (HttpResponseException $e) {
|
} catch (HttpResponseException $e) {
|
||||||
|
Reference in New Issue
Block a user