73 lines
2.1 KiB
PHP
73 lines
2.1 KiB
PHP
<?php
|
||
// +------------------------------------------------+
|
||
// |http://www.cjango.com |
|
||
// +------------------------------------------------+
|
||
// | 修复BUG不是一朝一夕的事情,等我喝醉了再说吧! |
|
||
// +------------------------------------------------+
|
||
// | Author: 小陈叔叔 <Jason.Chen> |
|
||
// +------------------------------------------------+
|
||
namespace app\mobile\controller;
|
||
|
||
use app\common\model\Article as ArticleModel;
|
||
use app\common\model\Member as MemberModel;
|
||
use app\common\service\Account as AccountService;
|
||
use app\common\service\CeArticle as CeArticleService;
|
||
use app\common\service\Tmplmsg;
|
||
use app\common\service\Wechat as WechatService;
|
||
use cjango\Wechat\Template;
|
||
|
||
class Tools extends _Init
|
||
{
|
||
|
||
public function article()
|
||
{
|
||
$id = 2356;
|
||
$info = ArticleModel::find($id);
|
||
dump($info->description);
|
||
}
|
||
|
||
public function index1()
|
||
{
|
||
$user = MemberModel::get(286);
|
||
$res = Tmplmsg::opened_7days($user);
|
||
dump($res);
|
||
|
||
// $res = AccountService::commission('VIP18052416191917516');
|
||
// dump($res);
|
||
}
|
||
|
||
public function vip()
|
||
{
|
||
$member = MemberModel::get(286);
|
||
$res = Tmplmsg::services_renewed($member);
|
||
dump($res);
|
||
}
|
||
|
||
public function token()
|
||
{
|
||
WechatService::instance();
|
||
$data = [
|
||
"first" => ["value" => "恭喜您成功续费以下项目:"],
|
||
"keyword1" => ["value" => "推广先锋"],
|
||
"keyword2" => ["value" => "2020-05-25"],
|
||
"remark" => "感谢您的支持!",
|
||
];
|
||
$res = Template::send('omdhJsw0wkcNO3XT8_j4ET_Xsjcs', 'IkkhxXwu04EFvHDnOBF_eUWf61SwjSyOmpV8C9RB-b4', $data, 'http:\/\/m.tgzs.cnskl.com\/center\/index?');
|
||
dump($res);
|
||
}
|
||
|
||
public function commission()
|
||
{
|
||
$res = AccountService::commission('VIP18062414234778436');
|
||
dump($res);
|
||
}
|
||
|
||
public function caiji()
|
||
{
|
||
$url = "https://mp.weixin.qq.com/s/WCxARP3pcZjvj0pMLHZ_Xw";
|
||
$data = CeArticleService::collect($url, UID);
|
||
dump($data);
|
||
}
|
||
|
||
}
|