Ejemplo n.º 1
0
 public function actionItemdelete($id)
 {
     $model = MItem::findOne($id);
     $model->delete();
     return $this->redirect(['itemlist']);
 }
Ejemplo n.º 2
0
<?php

use yii\helpers\Html;
use yii\helpers\Url;
use app\models\U;
use app\models\MOffice;
use app\models\MItem;
$item = \app\models\MItem::findOne(['gh_id' => $gh_id, 'cid' => $cid]);
//U::W($item);
?>

<style type="text/CSS">
.tabSumm 
{
	color:#00C;
}
.keyword
{
    color: red;
    background-color: yellow;
}
.highlight
{
    color: red;
    background-color: yellow;
}

.productPkgHint
{
    color: #aaaaaa;
    font-size: 10pt;
Ejemplo n.º 3
0
 public function actionOrderinfotest()
 {
     $this->layout = 'wapy';
     $gh_id = U::getSessionParam('gh_id');
     $openid = U::getSessionParam('openid');
     $oid = '55306A960191B';
     $model = MOrder::findOne($oid);
     $item = MItem::findOne(['gh_id' => $gh_id, 'cid' => $model->cid]);
     $input = new WxPayUnifiedOrder();
     $input->SetBody("test");
     $input->SetAttach("test");
     $input->SetOut_trade_no(WxPayConfig::MCHID . date("YmdHis"));
     $input->SetTotal_fee("1");
     $input->SetTime_start(date("YmdHis"));
     $input->SetTime_expire(date("YmdHis", time() + 600));
     $input->SetGoods_tag("test");
     $input->SetNotify_url("http://wosotech.com/wx/web/wxpaynotify.php");
     $input->SetTrade_type("JSAPI");
     $input->SetOpenid($openid);
     $unifiedOrder = WxPayApi::unifiedOrder($input);
     U::W($unifiedOrder);
     $jsApiParameters = $this->GetJsApiParameters($unifiedOrder);
     U::W($jsApiParameters);
     return $this->render('orderinfo', ['gh_id' => $gh_id, 'openid' => $openid, 'model' => $model, 'item' => $item, 'jsApiParameters' => $jsApiParameters]);
 }