add spend gold logic wait for mysql conf