解决流程:
在phpsso_server/api/uc.php class uc_note 中添加如下方法:
//更新客户端缓存
function updateclient($get, $post) {
if(!API_UPDATECLIENT) {
return API_RETURN_FORBIDDEN;
}
$cachefile = dirname(__FILE__).’/uc_client/data/cache/settings.php’;
$fp = fopen($cachefile, ‘w’);
$s = “<?php/r/n”;
$s .= ‘$_CACHE[/’settings/’] = ‘.var_export($post, TRUE).”;/r/n”;
fwrite($fp, $s);
fclose($fp);
return API_RETURN_SUCCEED;
}
查看phpsso_server/api/uc_client/data/cache/settings.php文件,发现已经更新成功:
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/250590.html