Day: November 24, 2014
-
Post Views: 14 Solution process: Add the following method to phpsso_server/api/uc.php class uc_note: //update client cache 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; } Check the PHPSSO_SERVER\API\UC_Client\Data\Cache\Settings.php file and find that the update has been successful:
