|
|
@@ -8,7 +8,6 @@ use biz\user\classes\UserClass;
|
|
|
use biz\user\services\UserAssetService;
|
|
|
use biz\user\services\UserService;
|
|
|
use common\components\stringUtil;
|
|
|
-use common\components\wxUtil;
|
|
|
use Yii;
|
|
|
use common\components\util;
|
|
|
use yii\helpers\Json;
|
|
|
@@ -159,33 +158,10 @@ class UserController extends BaseController
|
|
|
util::ok('注册成功');
|
|
|
}
|
|
|
|
|
|
- public function html_out($str)
|
|
|
- {
|
|
|
- if (function_exists('htmlspecialchars_decode')) {
|
|
|
- $str = htmlspecialchars_decode($str);
|
|
|
- } else {
|
|
|
- $str = html_entity_decode($str);
|
|
|
- }
|
|
|
- $str = stripslashes($str);
|
|
|
- return $str;
|
|
|
- }
|
|
|
-
|
|
|
//用户基本信息和资产 shish 2019.12.19
|
|
|
public function actionMyProfile()
|
|
|
{
|
|
|
$user = UserService::getUserInfo($this->userId);
|
|
|
- $content = '<p><a data-miniprogram-appid="wxe4675bab299a52f7" data-miniprogram-path="pages/case/casedetail?mainId=184&owner_user_id=19" href=""><img src="https://www.meijiabang.com/0.gif" alt="" data-width="null" data-ratio="NaN"></a></p>';
|
|
|
- $content = $this->html_out($content);
|
|
|
-
|
|
|
- $content = '<p><a data-miniprogram-appid="wxe4675bab299a52f7" data-miniprogram-path="pages/case/casedetail?mainId=184&owner_user_id=19" href=""><img src="https://www.meijiabang.com/0.gif" alt="" data-width="null" data-ratio="NaN"></a></p>';
|
|
|
-
|
|
|
- $r = wxUtil::sendMsg($content, $this->merchant, $user['openId']);
|
|
|
- Yii::info(json_encode($r));
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
$growth = $user['userAsset']['growth'];
|
|
|
$extend = $this->merchantExtend;
|
|
|
$grade = MerchantExtendService::getGradeList($extend, 'asc');
|