|
|
@@ -14,24 +14,11 @@ class CsController extends BaseController
|
|
|
|
|
|
public function actionIndex()
|
|
|
{
|
|
|
- $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 = '<a data-miniprogram-appid="wxe4675bab299a52f7" data-miniprogram-path="pages/case/casedetail?mainId=184&owner_user_id=19" href="">aaa</a>';
|
|
|
+ $content = '<a data-miniprogram-appid="wxe4675bab299a52f7" data-miniprogram-path="pages/case/get-list" href="">小程序</a>';
|
|
|
$merchant = MerchantService::getMerchantById(12362);
|
|
|
$openId = 'oTFbYvsjwgVwXggwtlM2ESAKwuN8';
|
|
|
$return = wxUtil::sendMsg($content, $merchant, $openId);
|
|
|
print_r($return);
|
|
|
}
|
|
|
-
|
|
|
- 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;
|
|
|
- }
|
|
|
|
|
|
}
|