|
@@ -18,11 +18,19 @@ class ProcessOrder extends \think\Model
|
|
|
$uid = isset($token['id']) ? $token['id'] : 0;
|
|
|
$name = isset($token['nickname']) ? $token['nickname'] : '';
|
|
|
}
|
|
|
+ $conf =Config::get("process");
|
|
|
+ $action = isset($conf[$order['order_type']]) ? $conf[$order['order_type']]:[];
|
|
|
+ $header =reset($action);
|
|
|
+ if((is_array($header)&&in_array($order['order_status'],$header))||$header==$order['order_status']){
|
|
|
+ $order_status=1; //流程新建
|
|
|
+ }else{
|
|
|
+ $order_status=2;
|
|
|
+ }
|
|
|
$data=[
|
|
|
"order_type"=>$order['order_type'],
|
|
|
"order_code"=>$order['order_code'],
|
|
|
"order_id"=>isset($order['order_id']) ?$order['order_id']:0 ,
|
|
|
- "order_status"=>$order['order_status'],
|
|
|
+ "order_status"=>$order_status,
|
|
|
"action_process"=>$order['order_status'],
|
|
|
"action_uid"=>$uid,
|
|
|
"action_name"=>$name,
|