save(); return $cashAccount; } /** * 更新账号可编辑修改 * @param $channelId * @return mixed|void */ public static function updateCashAccountEdit($channelId) { $cashAccount = self::getCashAccountSingle($channelId); if(empty($cashAccount)) { return; } $cashAccount['status'] = 0; $cashAccount->save(); return $cashAccount; } /** * 渠道账户是否设置 * @param $channelId * @return bool true:已经设置 false:没有设置 */ public static function isCashAccountExits($channelId) { $cashAccount = self::getCashAccountSingle($channelId); if(empty($cashAccount)) { return false; } if(empty($cashAccount['account_name']) || empty($cashAccount['card_number']) || empty($cashAccount['bank'])) { return false; } return true; } }