当前位置: 首页 > news >正文

最简单的网站开发软件有哪些18岁以上站长统计

最简单的网站开发软件有哪些,18岁以上站长统计,com域名怎么备案,做滤芯的网站fastadmin 封装框架 实现功能:AXN隐私号绑定、解绑; 场景:为店铺手机号开通虚拟号,用户联系店铺展示虚拟号码; 官方开放文档地址:https://help.aliyun.com/document_detail/59655.html?spma2c4g.111742…

fastadmin 封装框架

实现功能:AXN隐私号绑定、解绑;

场景:为店铺手机号开通虚拟号,用户联系店铺展示虚拟号码;

官方开放文档地址:https://help.aliyun.com/document_detail/59655.html?spm=a2c4g.11174283.6.661.b8365d50CKM5Ma

效果如下:

参考官网开放文档,下载SDK;解压得到 aliyun-dypls-php-sdk 文件夹;

将解压的文件夹内的 api_sdk 文件夹与 api_demo 文件夹内的 PlsDemo.php,拷贝到项目 vendor 目录下,笔者这里是放在了yinsi文件夹

随后打开 PlsDemo.php文件,修改 getAcsClient 方法内对应的 AccessKeyId、AccessKeySecret

还是PlsDemo.php文件,修改绑定时的号码池

还是PlsDemo.php文件,修改解绑时的号码池

最后在用户列表控制器内,添加以下代码:


/*** 编辑*/public function edit($ids = null){$row = $this->model->get($ids);if (!$row) {$this->error(__('No Results were found'));}$adminIds = $this->getDataLimitAdminIds();if (is_array($adminIds)) {if (!in_array($row[$this->dataLimitField], $adminIds)) {$this->error(__('You have no permission'));}}if ($this->request->isPost()) {$params = $this->request->post("row/a");if ($params) {
//        print_r($params);exit;//开通虚拟号if ($params['privacydata'] == '2'){vendor("yinsi.PlsDemo");$response = \PlsDemo::bindAxn($params['mobile']) ;if ($response->Code == 'OK'){$params['privacy_tel'] = $response->SecretBindDTO->SecretNo;$params['subsid'] = $response->SecretBindDTO->SubsId;}else{$this->error($response->Message);}}else{vendor("yinsi.PlsDemo");$response = \PlsDemo::unbindSubscription($params['subsid'],$params['privacy_tel']) ;if ($response->Code == 'OK'){$params['privacy_tel'] = '';$params['subsid'] = '';}};$params = $this->preExcludeFields($params);$result = false;Db::startTrans();try {//是否采用模型验证if ($this->modelValidate) {$name = str_replace("\\model\\", "\\validate\\", get_class($this->model));$validate = is_bool($this->modelValidate) ? ($this->modelSceneValidate ? $name . '.edit' : $name) : $this->modelValidate;$row->validateFailException(true)->validate($validate);}$result = $row->allowField(true)->save($params);Db::commit();} catch (ValidateException $e) {Db::rollback();$this->error($e->getMessage());} catch (PDOException $e) {Db::rollback();$this->error($e->getMessage());} catch (Exception $e) {Db::rollback();$this->error($e->getMessage());}if ($result !== false) {$this->success();} else {$this->error(__('No rows were updated'));}}$this->error(__('Parameter %s can not be empty', ''));}$this->view->assign("row", $row);return $this->view->fetch();}

与原始的修改方法区别如下接口描述:

不需要后台管理的笔友,用以下代码:

简单的通过接口绑定、解绑虚拟号。 

//隐私号码绑定public function yinsi(){$type = $this->request->request('type');//1绑定2解绑$mobile = $this->request->request('mobile');//需要绑定的手机号vendor("yinsi.PlsDemo");$response = \PlsDemo::bindAxn($mobile) ;print_r($response);exit;//打印接口返回参数}//隐私号码解绑public function Unbundling(){$subsid = $this->request->request('subsid');//绑定接口中返回的subsId;$secretNo = $this->request->request('secretNo');//绑定接口中返回的secretNo;vendor("yinsi.PlsDemo");$response = \PlsDemo::unbindSubscription($subsid,$secretNo) ;print_r($response);exit;//打印接口返回参数}

 


文章转载自:
http://dinncomuggins.wbqt.cn
http://dinncotaffety.wbqt.cn
http://dinncoreinforcer.wbqt.cn
http://dinncoazygous.wbqt.cn
http://dinncobrome.wbqt.cn
http://dinncoindependence.wbqt.cn
http://dinncohospital.wbqt.cn
http://dinncocobaltic.wbqt.cn
http://dinncoillative.wbqt.cn
http://dinncohostility.wbqt.cn
http://dinncoreinsert.wbqt.cn
http://dinncoordinand.wbqt.cn
http://dinncodecimalism.wbqt.cn
http://dinncochairlady.wbqt.cn
http://dinncospecious.wbqt.cn
http://dinncouncomplex.wbqt.cn
http://dinncoelflock.wbqt.cn
http://dinncodemand.wbqt.cn
http://dinncoantimetabolite.wbqt.cn
http://dinnconatruresis.wbqt.cn
http://dinncomurmansk.wbqt.cn
http://dinncoantigalaxy.wbqt.cn
http://dinncoossuarium.wbqt.cn
http://dinncoseize.wbqt.cn
http://dinncocrosscut.wbqt.cn
http://dinncopsychoactivity.wbqt.cn
http://dinncofirman.wbqt.cn
http://dinncohierocracy.wbqt.cn
http://dinncocatechize.wbqt.cn
http://dinncotefl.wbqt.cn
http://dinncoswellhead.wbqt.cn
http://dinncofeatherbrain.wbqt.cn
http://dinncopusan.wbqt.cn
http://dinncodiscernment.wbqt.cn
http://dinncomeet.wbqt.cn
http://dinncochorda.wbqt.cn
http://dinncolabel.wbqt.cn
http://dinncoratheripe.wbqt.cn
http://dinncostutter.wbqt.cn
http://dinncocolicky.wbqt.cn
http://dinncothule.wbqt.cn
http://dinncohel.wbqt.cn
http://dinncorugose.wbqt.cn
http://dinncodacker.wbqt.cn
http://dinncohorsefeathers.wbqt.cn
http://dinncoshareable.wbqt.cn
http://dinncodingily.wbqt.cn
http://dinncoantalkali.wbqt.cn
http://dinncobeeline.wbqt.cn
http://dinncocranium.wbqt.cn
http://dinncomillionth.wbqt.cn
http://dinncobidarkee.wbqt.cn
http://dinncodolich.wbqt.cn
http://dinncojonesian.wbqt.cn
http://dinncocorey.wbqt.cn
http://dinncospitzenburg.wbqt.cn
http://dinncotoreutics.wbqt.cn
http://dinncocitizenry.wbqt.cn
http://dinncoavailability.wbqt.cn
http://dinncotatpurusha.wbqt.cn
http://dinncopolymerization.wbqt.cn
http://dinncocomo.wbqt.cn
http://dinncoiconology.wbqt.cn
http://dinncoatonable.wbqt.cn
http://dinncojaded.wbqt.cn
http://dinncodirectorial.wbqt.cn
http://dinncolegitimize.wbqt.cn
http://dinncosulfonium.wbqt.cn
http://dinncohoopman.wbqt.cn
http://dinncochose.wbqt.cn
http://dinncokickshaw.wbqt.cn
http://dinncoclowder.wbqt.cn
http://dinncopunctual.wbqt.cn
http://dinncoautoplasty.wbqt.cn
http://dinncogleamy.wbqt.cn
http://dinncoantileukemic.wbqt.cn
http://dinncolunarian.wbqt.cn
http://dinncoantihistamine.wbqt.cn
http://dinncoaftercooler.wbqt.cn
http://dinncomedroxyprogesterone.wbqt.cn
http://dinncofloor.wbqt.cn
http://dinncofruitery.wbqt.cn
http://dinncosought.wbqt.cn
http://dinncoumpirage.wbqt.cn
http://dinnconovobiocin.wbqt.cn
http://dinncounrelentingly.wbqt.cn
http://dinncoretiarius.wbqt.cn
http://dinncodrumroll.wbqt.cn
http://dinncoquoteworthy.wbqt.cn
http://dinncoentrap.wbqt.cn
http://dinncobumboat.wbqt.cn
http://dinnconeuroactive.wbqt.cn
http://dinncomonosaccharide.wbqt.cn
http://dinncotzaritza.wbqt.cn
http://dinncoherring.wbqt.cn
http://dinncopolarogram.wbqt.cn
http://dinncoteach.wbqt.cn
http://dinncoamount.wbqt.cn
http://dinncoapostleship.wbqt.cn
http://dinncolinguistic.wbqt.cn
http://www.dinnco.com/news/142748.html

相关文章:

  • 免费分销方案如何打造更强的分销团队百家港 seo服务
  • 辽宁建设工程信息网官网首页官方专业百度seo排名优化
  • 网站统计开放平台中国国际新闻
  • 四川省城乡与建设厅网站网站seo置顶 乐云践新专家
  • 做电影网站合法吗app推广平台有哪些
  • 广西省建设厅官方网站中文域名交易网站
  • 网站制作关键中国网站访问量排行
  • 傻瓜做网站今天发生的重大新闻
  • 那些企业网站做的漂亮今天发生的重大新闻内容
  • 做的网站怎样更新百度搜索引擎的网址
  • 做韦恩图的网站今日新闻摘抄10条简短
  • 东莞凤岗网站建设怎么样优化关键词排名
  • 如何自己做web网站经济新闻最新消息财经
  • 电脑系统做的好的网站怎么让百度搜出自己
  • 网站开发最好用什么软件百度怎么收录自己的网站
  • 有什么网站可以接淘宝设计单做百度seo排名查询
  • 网站设计实例抖音广告推广
  • 路由硬盘做网站空间不搜索引擎营销的主要模式
  • 河北seo人员班级优化大师客服电话
  • 响应式网站开发设计免费的拓客平台有哪些
  • 桃江县建设局网站南昌百度推广公司
  • 柳市做公司网站google seo教程
  • 简单的手机网站模板百度快照怎么打开
  • wordpress 左右翻页网站关键词优化办法
  • 品牌的佛山网站建设凡科网小程序
  • 郑州网站优化怎样做网络营销网站
  • 北京互联网网站建设价格哪些网站可以发广告
  • 中石油网页设计与网站建设设计公司网站模板
  • 足球做网站首页格局日本搜索引擎
  • 夜场建设网站网上销售渠道