sendTestVersion($data['appid'], $data['template_id']); } else { $this->sendOfficialVersion($data['appid']); } } return true; } /** * @notes:发布正式版 * @param $appid * @author: wanghousheng */ private function sendOfficialVersion($appid) { $obj = new Server(); $res = $obj->privacyInfo($appid); if ($res == 'ok') { $obj->submitAudit($appid); } } /** * @notes:发布体验版 * @param $appid * @param $template_id * @throws BaseException * @author: wanghousheng */ private function sendTestVersion($appid, $template_id) { $obj = new Server(); $res = $obj->commit($appid, $template_id); } }