$template_id, 'ext_json' => [ 'extEnable' => true, 'extAppid' => $open_platform_model->appid, 'ext' => [ 'host' => $host, 'uniacid' => $uniacid, 'site_id' => $siteId, ] ], 'user_version' => $version, 'user_desc' => '上传时间' . date('Y-m-d H:i:s', time()) ); if (input('islive') == 'yes') { $data['ext_json']['plugins'] = [ 'live-player-plugin' => [ 'version' => 'latest', 'provider' => 'wx2b03c6e691cd7370' ] ]; $data['recompile'] = true; } // if (input('isLocation') == 'yes') { $data['ext_json']['permission'] = [ 'scope.userLocation' => [ 'desc' => '为了更好地为您提供就近的服务点' ] ]; $data['ext_json']['requiredPrivateInfos'] = [ 'getLocation', 'chooseAddress' ]; // }else{ // $data['ext_json']['privacy_api_not_use']=true; // } // var_dump($data);die; $result = $open_platform_model->weappCommit($data); return $this->response($result); } }