wangsaitao hace 8 meses
padre
commit
573d45be67

+ 2 - 0
application/common/model/Orders.php

@@ -248,6 +248,7 @@ class Orders extends Base {
                     'priority' => empty($data['priority']) ? 0 : $data['priority'],
                     'score'=>$conveyCate['score']
                 );
+
                 if(empty($ysData['xq_time'])){
                     unset($ysData['xq_time']);
                 }
@@ -259,6 +260,7 @@ class Orders extends Base {
                 if (!$oCid) {
                     exception('运送信息保存失败');
                 }
+                model('UserConveyCate')->updateCate($data['user_id'],$data['type']);
 
                 if ($conveyCate['cate'] == 1) {
                     $patient = [

+ 0 - 1
application/common/model/UserConveyCate.php

@@ -45,7 +45,6 @@ class UserConveyCate extends Base
         foreach ($lists as $k=>$v){
             if(!in_array($v['id'],$cates)){
                 $list1[] = $v;
-                break;
             }
         }