<commit_before><?php

namespace frontend\controllers;

use dosamigos\qrcode\QrCode;

class QrcodeController extends \common\controllers\BaseController {

    public function actionIndex() {
        $string = 'http://www.baidu.com';
        return QrCode::png($string);
    }

    /**
     * 联系我们
     * @return type
     */
    public function actionContact() {
        return $this->render('contact');
    }

    /**
     * 生成订单二维码
     */
    public function actionBookcode() {
        //得到传输过来的字符串
        $string = \Yii::$app->session->getFlash('userbookingstring');
        //使用传输中的KEY值来加密数据
        $tokenString = \Yii::$app->security->encryptByKey(json_encode($string), $string['tokenstring']);
        $url = 'http://wxzuan.zuanzuanle.com/member/logistics/fitlogs/' . $string['id'] . '.html?token=' . $tokenString;
        //$url = 'http://' . $_SERVER['HTTP_HOST'] . '/member/logistics/fitlogs.html?token=' . $tokenString;
        return QrCode::png($url);
    }

}<commit_msg>货物确认处理<commit_after><?php

namespace frontend\controllers;

use dosamigos\qrcode\QrCode;

class QrcodeController extends \common\controllers\BaseController {

    public function actionIndex() {
        $string = 'http://www.baidu.com';
        return QrCode::png($string);
    }

    /**
     * 联系我们
     * @return type
     */
    public function actionContact() {
        return $this->render('contact');
    }

    /**
     * 生成订单二维码
     */
    public function actionBookcode() {
        //得到传输过来的字符串
        $string = \Yii::$app->session->getFlash('userbookingstring');
        //使用传输中的KEY值来加密数据
        $tokenString = \Yii::$app->security->encryptByKey(json_encode($string), $string['tokenstring']);
        $url = 'http://wxzuan.zuanzuanle.com/member/logistics/fitlogs/' . $string['id'] . '.html?token=' . urlencode($tokenString);
        //$url = 'http://' . $_SERVER['HTTP_HOST'] . '/member/logistics/fitlogs.html?token=' . $tokenString;
        return QrCode::png($url);
    }

}
{'fraction_non_alphanumeric': 0.1700404858299595, 'fraction_numerical': 0.0, 'mean_word_length': 2.7372400756143667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '119877', 'n_tokens_mistral': 682, 'n_tokens_neox': 698, 'n_words': 94}