Example #1
0
         $res = goods_shop_class::set_service_status($service_id, 4);
         $res and PayitemClass::refundPayitem($service_id, 'goods');
         $v_arr = array($_lang['username'] => $service_arr['username'], '作品标题' => $service_arr['title'], '网站名称' => $kekezu->_sys_config['website_name'], "审核原因" => $reason);
         keke_shop_class::notify_user($service_arr['uid'], $service_arr['username'], 'zp_auth_fail', "作品审核失败", $v_arr);
         kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, '作品审核不通过成功', 'success');
     } else {
         $strUsername = sreward_task_class::getUsername($_GET['uid']);
         $strTittle = sreward_task_class::getSeverTitle($service_id);
         require keke_tpl_class::template('shop/goods/admin/tpl/goods_tp');
         die;
     }
     break;
 case 'view_info':
     if ($acc) {
         if ($acc == 'spass') {
             $arrLogInfo = CommonClass::getEditLogInfoByLogId($logId);
             keke_shop_release_class::updateEditStatusBySid($service_id, 3);
             $arrLogDatas = unserialize($arrLogInfo['log_content']);
             if ($arrLogDatas['custom']) {
                 $arrCustom = array('custom' => $arrLogDatas['custom']);
                 $strCustomSql = 'select a.id,a.extdata,b.f_name,b.f_tips,b.f_fixed_len,b.f_min_len,b.f_max_len,b.f_required,b.f_code from ' . TABLEPRE . 'witkey_custom_fields_ext a LEFT JOIN ' . TABLEPRE . 'witkey_custom_fields b ON a.c_id = b.id where a.objid = ' . intval($service_id);
                 $arrCustomExt = db_factory::query($strCustomSql);
                 foreach ($arrCustom['custom'] as $k => $v) {
                     foreach ($arrCustomExt as $i => $j) {
                         if ($j['id'] == $k) {
                             $arrExtdata = unserialize($j['extdata']);
                             $arrExtdata[$j['f_code']]['content'] = $v;
                             $strExtdata = serialize($arrExtdata);
                             $strExtdataSql = "update " . TABLEPRE . "witkey_custom_fields_ext set extdata = '{$strExtdata}' where id = " . intval($k);
                             db_factory::execute($strExtdataSql);
                         }