|
@@ -3,6 +3,7 @@
|
|
namespace app\common\model;
|
|
namespace app\common\model;
|
|
|
|
|
|
use think\Model;
|
|
use think\Model;
|
|
|
|
+use think\Config;
|
|
class Assms Extends Model
|
|
class Assms Extends Model
|
|
{
|
|
{
|
|
|
|
|
|
@@ -11,8 +12,8 @@ class Assms Extends Model
|
|
}
|
|
}
|
|
function sendSmsClick($phone,$template_body)
|
|
function sendSmsClick($phone,$template_body)
|
|
{
|
|
{
|
|
- $accessKeyId =Mage::getStoreConfig('smsbjh/ident_custom2/clickappid');
|
|
|
|
- $accessKeySecret = Mage::getStoreConfig('smsbjh/ident_custom2/clickAppSecret');
|
|
|
|
|
|
+ $accessKeyId =Config::get('site.clickappid');
|
|
|
|
+ $accessKeySecret = Config::get('site.clickAppSecret');
|
|
// Configure HTTP basic authorization: BasicAuth
|
|
// Configure HTTP basic authorization: BasicAuth
|
|
$config = \ClickSend\Configuration::getDefaultConfiguration()
|
|
$config = \ClickSend\Configuration::getDefaultConfiguration()
|
|
->setUsername($accessKeyId)
|
|
->setUsername($accessKeyId)
|