debug 发送短信
This commit is contained in:
parent
2cefddba52
commit
adb53a2840
@ -23,6 +23,7 @@ use think\facade\Db;
|
|||||||
use app\api\logic\SmsLogic;
|
use app\api\logic\SmsLogic;
|
||||||
use app\common\logic\CompanyLogic;
|
use app\common\logic\CompanyLogic;
|
||||||
use app\common\logic\UserLogic;
|
use app\common\logic\UserLogic;
|
||||||
|
use think\facade\Log;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Contract逻辑
|
* Contract逻辑
|
||||||
@ -297,6 +298,7 @@ class ContractLogic extends BaseLogic
|
|||||||
public static function postsms($params)
|
public static function postsms($params)
|
||||||
{
|
{
|
||||||
$result = self::detail($params);
|
$result = self::detail($params);
|
||||||
|
Log::info(['发送合同短信', $result]);
|
||||||
if ($result && $result['file'] != '') {
|
if ($result && $result['file'] != '') {
|
||||||
//发送短信
|
//发送短信
|
||||||
$data = [
|
$data = [
|
||||||
@ -352,6 +354,7 @@ class ContractLogic extends BaseLogic
|
|||||||
'code' => 'api/Hetong/url?id=' . $find['id'].'&type='.$v['type'],
|
'code' => 'api/Hetong/url?id=' . $find['id'].'&type='.$v['type'],
|
||||||
'scene' => 'WQ'
|
'scene' => 'WQ'
|
||||||
];
|
];
|
||||||
|
Log::info(['发送合同短信-消息体', $sms]);
|
||||||
$result = SmsLogic::contractUrl($sms);
|
$result = SmsLogic::contractUrl($sms);
|
||||||
if ($result != true) {
|
if ($result != true) {
|
||||||
return self::setError(SmsLogic::getError());
|
return self::setError(SmsLogic::getError());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user