mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-04 14:36:50 +08:00
21 lines
567 B
PHP
21 lines
567 B
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
|
||
class desktop_finder_favstar{
|
||
function run($task,$ctl){
|
||
$user_id = $ctl->user->user_id;
|
||
$finder_model = (key($task));
|
||
$rows = current($task);
|
||
$old_fav_rows = app::get('desktop')->getConf('favstar.'.$finder_model.'.'.$user_id);
|
||
$old_fav_rows = (array)$old_fav_rows;
|
||
$fav_rows = array_filter(array_merge($old_fav_rows,$rows));
|
||
|
||
app::get('desktop')->setConf('favstar.'.$finder_model.'.'.$user_id,$fav_rows);
|
||
|
||
}
|
||
}
|