- 后端增加一下代碼,然后重啟swoole,再去平臺后臺 設置 - 協議與規則 總將用戶協議提交一次;
if ($key == CacheRepository::USER_AGREE)
$this->repository->setUserRegister($value);
public function setUserRegister($content)
{
$html = <<
用戶協議
$content
HTML;
file_put_contents(public_path() . 'register.html', $html);
}
-
替換移動端協議文件,將附件中的文件下載解壓替換這個文件,替換之前先備份自己的原始文件
將這幾個文件替換到,打包成安卓的包; -
如果需要打包ios的包需要將 剛才替換進去的pages/index/index.vue這個地方的 true 改為 false;