|
...
|
...
|
@@ -2,6 +2,7 @@ |
|
|
|
|
|
|
|
namespace App\Models\Manage;
|
|
|
|
|
|
|
|
use App\Helper\Common;
|
|
|
|
use App\Models\Base;
|
|
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
|
|
|
...
|
...
|
@@ -38,10 +39,16 @@ class Manage extends Base |
|
|
|
public function getName($id){
|
|
|
|
$name = '';
|
|
|
|
if(!empty($id)){
|
|
|
|
$info = Common::get_user_cache('manager',$id,'A');
|
|
|
|
if($info === false){
|
|
|
|
$info = $this->read(['id'=>$id],['id','name']);
|
|
|
|
if($info !== false){
|
|
|
|
$name = $info['name'];
|
|
|
|
}
|
|
|
|
Common::set_user_cache('manager',$id,'A');
|
|
|
|
}else{
|
|
|
|
$name = $info['name'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $name;
|
|
|
|
}
|
...
|
...
|
|