関数
SyncAmazonAccount::updateSyncMeta( array $args )
Updates flag used to determine whether a login with Amazon should also force a login to Welcart or not
パラメータ パラメータ
- $args
(配列) (必須)
ファイル: src/API/SyncAmazonAccount.php
public function updateSyncMeta($args) { $sync = (bool)(int)$args['sync']; if (!isset($_SESSION['usces_member']['ID']) || empty($_SESSION['usces_member']['ID'])) { return $this->getErrorResponse(self::NOT_LOGGED_IN); } $memberId = (int)$_SESSION['usces_member']['ID']; $memMeta = new MemberMeta($memberId); $memMeta->updateAllowAmazonToWelcartLogin($sync); return 'success'; }