$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); } } } unset($arrLogDatas['custom'], $arrLogDatas['old_custom']); } $arrLogInfo['log_content'] = $arrLogDatas; CommonClass::applyEdit($arrLogInfo, $service_id); CommonClass::cancleEdit($service_id, 6); $arrServiceInfo = db_factory::get_one('select * from ' . TABLEPRE . 'witkey_service where service_id = ' . intval($service_id)); if ($arrServiceInfo['service_status'] == '1') { $time = time() - $service_arr['on_time']; keke_payitem_class::update_service_payitem_time($service_arr['payitem_time'], $time, $service_id); goods_shop_class::set_service_status($service_id, 2); } keke_msg_class::send_private_message('服务审核通知', '您编辑的商品信息<a href="index.php?do=goods&id=' . $service_id . '">' . $arrServiceInfo['title'] . '</a>已通过管理员审核,目前已生效!', $arrServiceInfo['uid'], $arrServiceInfo['username']); } if ($acc == 'snopass') { CommonClass::cancleEdit($service_id, 6); keke_shop_release_class::updateEditStatusBySid($service_id, 4); keke_msg_class::send_private_message('服务审核通知', '您编辑的商品信息<a href="index.php?do=goods&id=' . $service_id . '">' . $arrServiceInfo['title'] . '</a>未通过管理员的审核,如有疑问请联系网站管理员!', $arrServiceInfo['uid'], $arrServiceInfo['username']); } kekezu::echojson('操作成功', 1);