Exemplo n.º 1
0
 function handle_entity_op($config)
 {
     if (!isset($config['model'])) {
         die('参数错误!');
     }
     $_model = model($config['model']);
     if ($_POST['job'] == 'push') {
         $digg = (int) $_POST['push'];
         $set['digest'] = $digg;
         $get['in'] = array('id', implode(',', $_POST['ids']));
         $_model->sets($set, $get);
         JS::js_parent_reload('推荐成功');
     }
 }