|
@@ -32,6 +32,7 @@ import Redis from 'ioredis'
|
|
|
import { Channel } from '../channel/entities/channel.entities'
|
|
import { Channel } from '../channel/entities/channel.entities'
|
|
|
import { durainus } from './impl/durainus.service'
|
|
import { durainus } from './impl/durainus.service'
|
|
|
import { usapanel } from './impl/usapanel.service'
|
|
import { usapanel } from './impl/usapanel.service'
|
|
|
|
|
+import { dashboard } from './impl/dashboard.service'
|
|
|
|
|
|
|
|
@Injectable()
|
|
@Injectable()
|
|
|
export class RcsNumberService {
|
|
export class RcsNumberService {
|
|
@@ -68,6 +69,7 @@ export class RcsNumberService {
|
|
|
private durainus: durainus,
|
|
private durainus: durainus,
|
|
|
private usapanel: usapanel,
|
|
private usapanel: usapanel,
|
|
|
private textverified: textverified,
|
|
private textverified: textverified,
|
|
|
|
|
+ private dashboard: dashboard,
|
|
|
private readonly redisService: RedisService
|
|
private readonly redisService: RedisService
|
|
|
) {
|
|
) {
|
|
|
this.cloud033 = new cloud214('100033', '1e40ca9795b1fc038db76512175d59b5', RcsNumberSource.cloud033)
|
|
this.cloud033 = new cloud214('100033', '1e40ca9795b1fc038db76512175d59b5', RcsNumberSource.cloud033)
|
|
@@ -311,6 +313,8 @@ export class RcsNumberService {
|
|
|
return this.textverified
|
|
return this.textverified
|
|
|
case RcsNumberSource.usapanel:
|
|
case RcsNumberSource.usapanel:
|
|
|
return this.usapanel
|
|
return this.usapanel
|
|
|
|
|
+ case RcsNumberSource.dashboard:
|
|
|
|
|
+ return this.dashboard
|
|
|
default:
|
|
default:
|
|
|
throw new ServiceUnavailableException('不支持的短信通道')
|
|
throw new ServiceUnavailableException('不支持的短信通道')
|
|
|
}
|
|
}
|