dever 6 tahun lalu
induk
melakukan
329c363233
2 mengubah file dengan 2 tambahan dan 3 penghapusan
  1. 1 0
      main/lib/Core.php
  2. 1 3
      youzan/src/Card.php

+ 1 - 0
main/lib/Core.php

@@ -30,6 +30,7 @@ function callAction($send)
 			$result = $wechat->curl($send['t'], $param, false);
 			if ($send['e']) {
 				Dever::load($send['a'] . '/' . $send['e'], $send['i'], $result, $send['p']);
+				Dever::load($send['a'] . '/' . $send['e'], $send['i'], $result, $send['p'], true);
 			}
 		}
 

+ 1 - 3
youzan/src/Card.php

@@ -22,7 +22,6 @@ class Card
 	public function total()
 	{
 		$total = Dever::db('youzan/card_list')->total(array('option_state' => 1, 'option_status' => 1));
-		print_r($total);die;
 		return Dever::lock($this->lock, $total);
 	}
 
@@ -80,7 +79,7 @@ class Card
 		$id = Dever::input('id');
 		$info = Dever::db('youzan/card')->one($id);
 		if ($info) {
-			Core::run($info['project_id'], 'card_create', 'card.createStart', 'card.createEnd', 'youzan', $id, true);
+			Core::run($info['project_id'], 'card_create', 'card.createStart', 'card.createEnd', 'youzan', $id, false);
 		}
 		Dever::alert('提交成功,请到优惠券列表中查看');
 		return;
@@ -147,7 +146,6 @@ class Card
 	public function createEnd($project_id, $data, $id = false, $end = false)
 	{
 		if ($end) {
-			echo $end;die;
 			# 如果执行结束,则加到库存里
 			$this->total();
 		} else {